• Hi everyone,

    I am building a template in which custom post types must be loaded in two different templates.
    You have two different menu items : NEWS / VIDEOS / PRINT.
    Each month, the administrator will upload new projects in ‘NEWS’. Theses projects will also be found in the two categories ‘VIDEOS’ and ‘PRINT’.
    Until now, I have built everything. The only problem remaining is : when you are in ‘NEWS’, you click for example on ‘OCTOBER 2014’, you have the list of projects (videos and/or prints). Then, if you click on the project, the present template system send the user on single.php, which means, you go out of the ‘NEWS’ menu to go to ‘VIDEOS’, which is normal, because I am using the_permalink();, but not good, as I am looking for staying in the same menu.
    Anyone has an idea?
    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Agence Myso

    (@agence-myso)

    Excuse me, you have “THREE” different menu items. No two.

    Moderator bcworkz

    (@bcworkz)

    I think my approach would be to modify the call to wp_nav_menu() in the related templates to conditionally load one menu or the other based on some criteria such as referring page, or passed data from something such as URL parameter, cookie, session, transient, etc.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Loading custom post types in two different places’ is closed to new replies.