Jump to content
Sign in to follow this  
oksodavid

Brand and Primary Nav disappear on 'Currently viewing the category'

Recommended Posts

oksodavid    23
oksodavid

I'm sure its something obvious but I've not found it yet. When I get the results for 'Currently viewing the category' all navigation disappears. I'm also using the mobile menu which becomes inactive on this view as well.

Share this post


Link to post
Share on other sites
Rob    547
Rob
At the moment, it's saying "Unable to connect". This sounds like you may have some settings in PageLines > Meta or in PageLines > Templates mis-set. As soon as we can, we'll take a look with you.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
oksodavid    23
oksodavid
Hey rangelone, I found it. I'm using simple custom post types and using this filter to get search results back for a particular post type. I needed to add 'nav_menu_item' to array. add_filter('pre_get_posts', 'query_post_type'); function query_post_type($query) { if ( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) { $post_type = get_query_var('yoga'); if($post_type) $post_type = $post_type; else $post_type = array('post','yoga','nav_menu_item'); $query->set('post_type',$post_type); return $query; } }

Share this post


Link to post
Share on other sites
oksodavid    23
oksodavid
That fixed I've now got a problem with search results eg. http://okso.dyndns-remote.com/?s=Open+year+round - instead of returning template search it returns my custom post template. I get its returning content from a custom post, I don't get why doesn't return via the search template. Any ideas?

Share this post


Link to post
Share on other sites
oksodavid    23
oksodavid
http://okso.dyndns-remote.com/?s=shrubs contains 1 standard post and 1 custom post type and returns the template 'search'. http://okso.dyndns-remote.com/?s=shock contains 1 custom post type and returns the template 'yoga' (the custom post label). I'm missing something vital!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×