Problem with calling category with future posts onto page
-
Hi all,
I have a piece of code I use to pull all future posts into my events page that are under the category – events. Now this code has always worked in the past but for some reason it no longer does.
Do you have any ideas why it no longer works?
<?php $my_query = new WP_Query('category_name=events&post_status=future&order=ASC'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?> <ul> <li><h5 class="event-list"><?php the_time('M, Y') ?> – <?php the_title(); ?></h5></li> <li class="end"><?php the_content(); ?></li> </ul> <?php endwhile;?>
Here is a paste link to code: http://paste.pocoo.org/show/389324/
Thanks,
Karl
- The topic ‘Problem with calling category with future posts onto page’ is closed to new replies.