Future Custom Post Query
-
Hi!
Our current website uses a custom query to display scheduled future post. I was wondering if this plugin could do something similar. I have a custom post type “Webinars” and I would like to display our future webinars above previously shown webinars.
We use:
<?php $future_posts = new WP_Query(
array(
‘post_type’=>’webinar’,
‘order’ => ‘DESC’,
‘post_status’ => ‘future’
)); ?><?php if ( $future_posts->have_posts() ) : ?>
<?php while ($future_posts->have_posts()) : $future_posts->the_post(); ?>
<?php endwhile; ?>Thanks,
Nathan
- The topic ‘Future Custom Post Query’ is closed to new replies.