Hallo zusammen!
Folgendes Problem:
Ich möchte auf meinem Blog reine Text-Beiträge von meinen Podcast-Beiträgen trennen. Deshalb sollte die Kategorie Podcast nicht auf der Startseite angezeigt werden.
Folgendes habe ich bereits gemacht:
Ich habe gemäss diesem Beitrag den Befehl query_posts("-27") vor den Loop geschrieben. Nun werden die Podcast-Beiträge zwar nicht mehr angezeigt. Aber die "Nächste Seite" Navigation funktioniert nicht mehr. Es werden immer dieselben Beiträge angezeigt.
Was könnte das Problem sein :confused:
home.php:
PHP
<?php get_header(); ?>
<div id="mid" class="fix">
<div id="mainCol" class="fix"><a name="main"></a>
<?php if (have_posts()) : ?>
<?php query_posts("cat=-27");
while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="postMeta"><span class="date"><?php the_time('M j, Y') ?></span><span class="comments"><?php comments_popup_link('0', '1', '%'); ?></span></div>
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?></a></h2>
<div class="entry">
<p><?php the_content_rss('', FALSE, '', 43); ?></p>
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="post">
<div class="postMeta"><span class="date">No Matches</span></div>
<h2>No matching results</h2>
<div class="entry">
<p>You seem to have found a mis-linked page or search query with no associated results. Please trying your search again. If you feel that you should be staring at something a little more concrete, feel free to email the author of this site or browse the archives.</p>
</div>
</div>
<?php endif; ?>
<div id="more_reading">
<p>Continue <?php posts_nav_link(' ','<img src="http://5thirtyone.com/wp-content/themes/gridded/images/arrow_prev.gif" alt="Previous page"/>','<img src="http://5thirtyone.com/wp-content/themes/gridded/images/arrow_next.gif" alt="Next page" />') ?></p>
</div>
</div>
<?php include (TEMPLATEPATH . '/second.php'); ?>
<?php include (TEMPLATEPATH . '/third.php'); ?>
</div>
<?php get_footer(); ?>
Alles anzeigen