Support » Plugin: PostX - Gutenberg Post Grid Blocks » Future Custom Post Query

  • 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)
  • You must be logged in to reply to this topic.