Skip to content

[Resolved] Future posts not showing when using custom WP_Query

Home Forums Press Permit API Future posts not showing when using custom WP_Query

This topic contains 2 replies, has 2 voices, and was last updated by 2 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21789 Reply

    We have an “Events” Custom Post Type, that we are querying like this:


    $events_feed_args = array(
    'post_type' => 'event',
    'post_status' => 'future',
    'order' => 'asc',
    'posts_per_page' => -1
    );

    $events_feed_query = new WP_Query( $events_feed_args );

    When PressPermit is enabled, future events only show up for the administrator. Any other role and anonymous cannot see any future events (in other words this query returns 0 results). We are using the PP Collaborative Editing Pack and PP Custom Post Statuses plugins as well, and it seems like it’s not handling the “future” post status correctly.

    If I go to PressPermit Settings > Advanced and enable “Disable all filtering for anonymous users” then the “future” events show up for anonymous visitors but not any non-admin logged in users.

    Am I missing something or is there a bug?

    Thanks,
    Carl

    #21790 Reply

    [ login required ]

    #21792 Reply

    [ login required ]

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Registered members have full access to Pro support forums here.

Feel free to log in or purchase a support key.