Support » Plugin: WPtouch Mobile Plugin » menu link does not pointing to correct destination at frontend

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    i tried solve it myself, but i give up

    i guess, there is something inside wptouch_show_menu( ‘primary_menu’ ); in header_bottom.php

    i use default bauhaus theme

    Hope anybody could give some help

    Regards,
    Gangsar

    after looking for the problems, i guess walker argument is the most possible problem

    function _wptouch_show_menu( $menu_slug, $nav_menu_walker, $page_menu_walker ) {
    	$nav_menu_walker = apply_filters( 'wptouch_nav_menu_walker', $nav_menu_walker, $menu_slug );
    	$page_menu_walker = apply_filters( 'wptouch_page_menu_walker', $page_menu_walker, $menu_slug );
    
    	$menu_to_show = wptouch_get_menu_name_from_slug( $menu_slug );
    
    	if ( $menu_to_show == 'wp' ) {
    		wp_list_pages (
    			array(
    				'title_li' => '',
    				'walker' => $page_menu_walker
    			)
    		);
    	} else if ( $menu_to_show != 'none' ) {
    		if ( $nav_menu_walker == false ) {
    			$nav_menu_walker = new WPtouchProMainNavMenuWalker;
    		}
    
    		// WordPress menu
    		$menu_params = array(
    			'before' => '',
    			'after' => '',
    			'container' => '',
    			'container_class' => '',
    			'container_id' => '',
    			'link_before' => '',
    			'link_after' => '',
    			'menu_class' => '',
    			'items_wrap' => '%3$s',
    			'menu' => $menu_to_show,
    			'walker' =>	$nav_menu_walker
    		);
    
    		wp_nav_menu(
    			$menu_params
    		);
    	}

    but, it’s too heavy for me to dig it up again

    maybe any guru here could give me some help?

    after looking for the problems, i guess walker argument is the problem

    in wptouch/core/menu.php:
    http://pastebin.com/KCAtACrc

    but it’s too heavy to continuing looking for the problems for me.

    any guru could give me some help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘menu link does not pointing to correct destination at frontend’ is closed to new replies.