Danke dir, das ist genau das was ich gebraucht habe. Allerdings muss ich zugeben, dass es mir erheblich Probs bereitet.
Was ich mit den ganz Teilen anfang hab ich mittlerweile verstanden, nur gerate ich immerwieder in Syntaxprobleme...
Ich hab hier mal meine index.php:
[size=8]<?php get_header(); ?>
<div class="ncol"><!-- Begin of the narrow column -->
<?php
$posts = query_posts($query_string . '&orderby=id&order=asc&posts_per_page=-1');
if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post"><!-- Post Div-->
<h2 id="post-<?php the_ID(); ?>">
<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
</h2>
<div class="entry">
<?php the_content(__('<strong>(more...)</strong>')); ?>
</div>
<p class="postmetadata"><!-- Here goes the metadata of your post-->
<?php edit_post_link('#','','| '); ?><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_time('m/d/y') ?></a> | <?php the_category(' - ') ?> | <a href="<?php trackback_url(display); ?>">Trackback</a> | <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?><br/><?php link_pages('<strong>Pages:</strong> ', '', 'number'); ?>
</p>
<!--<?php trackback_rdf(); ?>-->
</div><!-- End of post div-->
<?php endwhile; ?>
<div class="navigation">
<div class="al"><?php posts_nav_link('','','« Previous Entries') ?></div>
<div class="ar"><?php posts_nav_link('','Next Entries »','') ?></div>
</div>
<?php else : ?>
<h2>Error 404 - Not Found</h2>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div><!-- This closes the narrow column div, leave it where it is! do NOT place it before the php endif -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
[size=10]Wo genau muss ich denn nun das da hier [/SIZE][/SIZE][COLOR=#000000] [COLOR=#0000cc]
<?php [/COLOR][COLOR=#006600]if ([/COLOR][COLOR=#0000cc]is_single[/COLOR][COLOR=#006600]([/COLOR][COLOR=#006600]'1'){ [/COLOR][COLOR=#0000cc]?>
[/COLOR]
[COLOR=#0000cc]<?php [/COLOR][COLOR=#006600]} [/COLOR][COLOR=#0000cc]?>[/COLOR]
oder das hier[/COLOR][COLOR=#000000][COLOR=#0000cc]
<?php [/COLOR][COLOR=#006600]if ([/COLOR][COLOR=#0000cc]is_category[/COLOR][COLOR=#006600]([/COLOR][COLOR=#006600]'Allgemein'){ [/COLOR][COLOR=#0000cc]?>
[/COLOR]
[COLOR=#0000cc]<?php [/COLOR][COLOR=#006600]} [/COLOR][COLOR=#0000cc]?>[/COLOR]
hinsetzen, damit das funktioniert?
Ich saß heut nacht verdammt lang hier rum und hab glaub jede erdenkliche Variante ausprobiert, ständig mit dem gleichen Ergebnis: Error, syntax fehler oder unexspected irgendwas :(
Meine Nerven sind am Ende, please Help!:)
[/COLOR][size=8]
[/SIZE]