Hi, ich habe schon viel gelesen aber ich verstehe immer nach nicht wie es geht.
PHP
<?php $jahr=date("Y")+1; query_posts("showposts=10"); if ( have_posts() ) { echo '<ul class="jahreszahl"><li class="title">Jahresübersicht:</li>'; while( have_posts() ) { the_post(); echo '<li class="jahreszahl"><a href="'; the_permalink(); echo '">'; print --$jahr; echo '</a></li>'; } echo '</ul>'; } ?>
<?php query_posts('category=Termine&year=date("Y")'); ?> <?php while (have_posts()) : the_post(); ?> <h2><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h2> <?php the_content() ?> <?php endwhile;?>
Das ist mein bisheriger Code und die Seite sieht schon nicht so schlecht aus.
Das Problem ist der Artikel ist zweimal da und wie muss ich die Verlinkung ändern damit dort nur category=[COLOR=#333333][FONT=sans-serif]Termine erscheint?
MfG Lutz Müller[/FONT][/COLOR]