• Resolved pierrem

    (@pierrem)


    Context :

    • WP last version, PP Permissions last version
    • – The author #2 has 3 posts : 1 published, 2 pending
    • If logged as “Editor”, with PP Permission activated, the following code returns wrong results (1 post)
    • if logged as “Editor”, without PP Permissions activated (inactive), the following code return correct results (3 posts)
    $args = array
    (
    'post_status' => array('publish','pending', 'inherit'),
    'post_type' => 'post',
    'posts_per_page' => -1,
    'author' => 2,
    );
    $query = new WP_Query($args);
    if ($query->have_posts())
    {
       echo("# : ".$query->post_count."<br>");
    } else {
       echo("else....");
    }

    There is something I do not understand ! May be wrong config (english is not my language ….)
    Help greatly appreciated
    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    Hi @pierrem

    Thanks for using PublishPress Permissions.

    Do you have any exact steps where we can reproduce this issue in our testing environment?

    Plugin Author Steve Burge

    (@stevejburge)

    Thanks for using PublishPress. We’ve not hear back from you in two weeks, so we’re closing this ticket for now. Please follow up if you can share more details.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Not all post shown with plugin activated’ is closed to new replies.