Avada Forums Community Forum Private Pages in Vertical Menu Widget

Viewing 1 post (of 1 total)
  • Author
  • nicolethompson11
    Post count: 4

    Hoping someone can help me out with making the following code work on the Avada Vertical Menu widget content.

    The below code was effective in making private pages visible in the menu builder and in WordPress Navigation Menu widgets, but while private pages are appearing perfectly in typical WordPress menus they’re not appearing in the Avada Vertical Menu widget menus.

    add_filter( 'nav_menu_meta_box_object', 'show_private_pages_menu_selection' );
    * Add query argument for selecting pages to add to a menu
    function show_private_pages_menu_selection( $args ){
        if( $args->name == 'page' ) {
            $args->_default_query['post_status'] = array('publish','private');
        return $args;

    Any help appreciated.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.