Support » Plugin: Recent Posts Widget With Thumbnails » Show Private Posts

  • Resolved d3d5x1

    (@deraxia)


    Absolutely amazing plugin, I wish I had found this sooner.

    Question: Is there a way to make it show private posts? I use this on a page that only logged in users can see, so there is no concern about hiding private posts from them.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kybernetik Services

    (@kybernetikservices)

    Hello @deraxia.
    Thank you for reaching out.

    The plugin only considers posts with the post status published. I will improve this setting in one of the upcoming versions.
    For now you can modify the query arguments by yourself by using the filter
    rpwwt_widget_posts_args.

    Add this code to your child themes funtions.php

    add_filter('rpwwt_widget_posts_args', function ( $query_args ) {
        $query_args[ 'post_status' ] = array( 'publish', 'private');
        return $query_args;
    });

    Please let me know if this helps.

    Thread Starter d3d5x1

    (@deraxia)

    That works perfectly, thanks!

    Plugin Author Kybernetik Services

    (@kybernetikservices)

    Hi @deraxia.
    If you like the plugin I would appreciate if you have a minute to write a review.
    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.