WordPress.org

Support

Support » Plugins and Hacks » Showing custom menu in specific language and in spesific page

Showing custom menu in specific language and in spesific page

  • Hi,

    I am using WPML. And in sidebar I have Custom menu. I want to control wich language version of menu shows in specific page and its child pages.

    Now I have widget logid code:
    global $post; return (is_page(16) || ($post->post_parent==”16″));

    And I cant´t figure out how I gonna at for this code which gonna shows that menu only the other language version, and in right pages.

    This one doesn´t work:
    global $post; return (is_page(16) || ($post->post_parent==”16″)) || (ICL_LANGUAGE_CODE == ‘sv’);

    And this either:
    global $post; return (is_page(16) || ($post->post_parent==”16″)) && (ICL_LANGUAGE_CODE == ‘sv’);

  • The topic ‘Showing custom menu in specific language and in spesific page’ is closed to new replies.
Skip to toolbar