Support » Fixing WordPress » Adding links or single posts in Sandbox globalnav

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • I solved this problem using Page Lists Plus plugin. Hope it can help.

    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?


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding links or single posts in Sandbox globalnav’ is closed to new replies.