WordPress.org

Ready to get started?Download WordPress

Forums

List category posts
[resolved] [post_status = publish] still shows private post (4 posts)

  1. writegnj
    Member
    Posted 1 year ago #

    Thank you for the great plugin. This is what I exactly needed.

    I set up post_status to publish but it still shows private post too on the page. I only want to display published post on the page. any suggestions to solve this problem?

    thanks in advance.

    http://wordpress.org/extend/plugins/list-category-posts/

  2. writegnj
    Member
    Posted 1 year ago #

    Well I just found that [post_status = publish] works ok when you are Not Sign in but when user sign in as author, it's pulling out private posts from database and displays it on the page.. any solutions?

  3. writegnj
    Member
    Posted 1 year ago #

    lol
    removing below code

    if(is_user_logged_in()):
    $args['post_status'] = array('publish','private');
    endif;

    in CatList.php line 73 solved the problem.

  4. picandocodigo
    Member
    Plugin Author

    Posted 1 year ago #

    Have to check that code with the new post_status parameter. Thanks for the heads up!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.