Same post one every page with query_post
-
I’m using this script for making just one of my categories show on each day of the week;
<?php global $query_string; query_posts( $query_string . "&order=ASC" ); ?> <?php $today = date('N'); if( $today == 1 ) : query_posts( 'cat=6' ); { ?> <?php } elseif( $today == 2 ) : query_posts( 'cat=5' ); { ?> <?php } elseif( $today == 3 ) : query_posts( 'cat=7' ); { ?> <?php } elseif( $today == 4 ) : query_posts( 'cat=9' ); { ?> <?php } elseif( $today == 5 ) : query_posts( 'cat=10' ); { ?> <?php } elseif( $today == 6 ) : query_posts( 'cat=8' ); { ?> <?php } elseif( $today == 7 ) : query_posts( 'cat=11' ); { ?> <?php } ?> <?php endif; ?>
I show 1 post/page, the count of posts is right, so if the category has 5 posts I can see 5 pages, but with the same post on every page, can someone please help me with this?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Same post one every page with query_post’ is closed to new replies.