Support » Plugin: Advanced Sidebar Menu » Show Pages with visibility set to Private

  • Resolved luisrotelli

    (@luisrotelli)


    Hi,
    I need to have a sidebar menu to show only pages with content visibility set to private.
    Since only private pages will have a sidebar (the public pages have no sidebar), this menu will be visible only to logged in users.
    I want to nest automatically pages by categories, and all those pages will be set to Private Content, no exceptions.
    Is this possible out of the box with this plugin?
    Otherwise, is there an easy way to tweak the code?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mat Lipe

    (@mat-lipe)

    Hello,

    This plugin uses the page hierarchy to determine which pages to display so there is not really any good way to combine categories and pages without re-writing so much logic that it would make more sense to fork the plugin.

    Sorry it was unable to meet your needs.

    Mat Lipe

    Thread Starter luisrotelli

    (@luisrotelli)

    Hello Mat, Thank you for you answer.
    I could use page hierarchy instead of categories, no problem. The only thing I want is the capability of menu show pages with visibility set to private, because normally the menus only show public pages.
    So I reformulate the question considering only page hierarchy, if it is possible to show pages in sidebar menu with content visibility set to private.

    Plugin Author Mat Lipe

    (@mat-lipe)

    Hello,

    You could give this code a try.

    add_filter( 'advanced_sidebar_menu_list_pages_args', function( $args ){
    	$args[ 'post_status' ] = 'private';
    	return $args;
    });
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show Pages with visibility set to Private’ is closed to new replies.