• Hi guys, im creating a network menù whit the wp_nav_menu function.

    At the moment this is my code:

    $site_list = $wpdb->get_results('SELECT * FROM wp_blogs ORDER BY blog_id');
    	foreach($site_list as $sito){
    		if($sito->blog_id == $current_blog_id || ( ! in_array( $sito->blog_id , $idBlog ) ) ) continue;
    		switch_to_blog($sito->blog_id);
    		$menuNetwork .= wp_nav_menu(array('menu'=>'category-menu','container_id'=>$idnome[$sito->blog_id],'container_class'=>'menu-category-menu-container nascosto','echo'=>0));
    	}

    It generates all menùs i need, but permalink structure is
    https://www.mysite.it/?cat=222
    where should be like this
    https://www.mysite.it/cat-name

    In fact, on the active site, permalink structure works fine, but on the generated menùs, permalinks aren’t right.

    This is the site where im working on it: Attualissimo. I hope you can help me ??

Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Broken permalink structure with wp_nav_menu’ is closed to new replies.