• Resolved nspinetti

    (@nspinetti)


    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

Viewing 1 replies (of 1 total)
  • Plugin Author WPXPO

    (@wpxpo)

    Hi @nspinetti,

    Thank you for using our post blocks plugin. I will inform our development team about this feature.

    Have a nice day.

Viewing 1 replies (of 1 total)
  • The topic ‘Future Custom Post Query’ is closed to new replies.