WordPress.org

Ready to get started?Download WordPress

Forums

Showing custom menu in specific language and in spesific page (1 post)

  1. Sanelma
    Member
    Posted 2 years ago #

    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');

Topic Closed

This topic has been closed to new replies.

About this Topic