Advanced Sidebar Menu
[resolved] display a menu of subpages from a page ID (2 posts)

  1. M One
    Posted 2 years ago #

    Any way of using this plugin to display a list of subpages of any page by ID rather than bu current location.

    i.e. I would like to display a sidebar menu of pages from a specific section of the site on the homepage.

    Many Thanks.


  2. Mat Lipe
    Plugin Author

    Posted 2 years ago #

    Hi M One,

    You should be able to do this by use a filter like so.

    add_filter('advanced_sidebar_menu_top_parent', 'always_same_top' );
    function always_same_top(){
        $parent = 'put ID here';
        if( is_home() || is_front_page() ){
            return $parent;

    If you add this to your theme's functions.php file and change 'put ID here' to the page id you would like to use as the parent.

    Hope this helps!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Sidebar Menu
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.