Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
Hi,
I made a custom template from your vantage theme with minor modifications.
How can I make the main menu reappear on archive pages.
thank you!
Bruno
Hi Bruno
Hard to say looking at the site from the browser. Could you perhaps send a zipped copy of your child them to [email protected]? I’ll take a look. Please include a link back to this thread in that email.
Thanks
Hi Andrew,
thank you for your reply.
I think the problem is between the theme and a plug-in of wpmu (custom sidebars pro).
The support there ask how the menu in vantage is implemented:
Did he use custom Walker class? Or standard wp_nav_menu?
Can you help me out, I think together we will fix this issue.
Thanks!
Hi Andrew,
fixed it by myself with this code in functions.php
function namespace_add_custom_types( $query ) { if( is_category() || is_tag() ) { $query->set( 'post_type', array( 'post', 'nav_menu_item', 'ansprechpartner' )); return $query; } } add_filter( 'pre_get_posts', 'namespace_add_custom_types' );Awesome, really glad to hear you made progress there. Thanks for posting the solution.