Help with category.php loop
-
Hi
Can anyone help me with my category.php theme file.
I want to make a loop that shows future post from the specific category. So the only thing that should be different is that my category.php have to show future post instead of publish post.
I manage to do that with my index.php, but i can’t make it work with categories.
My index.php looks like this:
<?php
$my_query = new WP_Query(‘post_status=future&order=ASC’);
?><?php
if ($my_query->have_posts()) : while ($my_query->have_posts()) :
$my_query->the_post();
$do_not_duplicate = $post->ID;
?>Thanks
Lars
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Help with category.php loop’ is closed to new replies.