am having a a problem…..I have 3 sections of my website that use the query_posts:
<?php $posts = query_posts( "cat=8&showposts=1"); ?> <?php if( $posts ) : ?> <?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
what I needed appears on the front page. I also use it for my index.php to exclude categories that I don’t want to show, the problem is, how do I create my single.php
I tried copying everything in index.php and pasting it into single.php, but nothing happens. I have put
<?php wp_reset_query(); ?>at the end of all the 3 sections….nothing 🙁
any helps would be appreciated..thanx in advance
- The topic ‘query_posts in index.php is working, but single.php is NOT!!! help’ is closed to new replies.