WordPress.org

Ready to get started?Download WordPress

Forums

Adding links or single posts in Sandbox globalnav (3 posts)

  1. silviolorusso
    Member
    Posted 3 years ago #

    hello, I'm trying very hard to solve this problem:

    the Sanbox-globalnav shows only the list of pages but I want to add general links such as to external website or to a single post.

    This is the function of the navigation bar:

    function sandbox_globalnav() {
    	if ( $menu = str_replace( array( "\r", "\n", "\t" ), '', wp_list_pages('title_li=&sort_column=menu_order&echo=0') ) )
    		$menu = '<ul>' . $menu . '</ul>';
    	$menu = '<div id="menu">' . $menu . "</div>\n";
    	echo apply_filters( 'globalnav_menu', $menu ); // Filter to override default globalnav: globalnav_menu
    }

    Thank you

  2. silviolorusso
    Member
    Posted 3 years ago #

    I solved this problem using Page Lists Plus plugin. Hope it can help.

  3. werefans
    Member
    Posted 3 years ago #

    Hi there!

    I'm having the same problem, I tried modifying the php but no success.
    You solved it using Page Lists Plus plugin, I installed it but I don't know how to go on. i want some category pages to be shown in sandbox-globalnav, do you know how yo do this?

    Do you know if there is a way to place each link in a certain order, not sorted alphabetically?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic