Jump to content


Photo
- - - - -

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


  • Please log in to reply
4 replies to this topic

#1 oksodavid

oksodavid

    Advanced Member

  • Members

  • 49 posts
  • LocationLondon & Dorset
  • Framework Version:PL Beta
  • Country: Country Flag

Posted 03 April 2012 - 11:36 PM

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.

#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 04 April 2012 - 12:09 AM

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.

#3 oksodavid

oksodavid

    Advanced Member

  • Members

  • 49 posts
  • LocationLondon & Dorset
  • Framework Version:PL Beta
  • Country: Country Flag

Posted 07 April 2012 - 12:27 PM

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; } }

#4 oksodavid

oksodavid

    Advanced Member

  • Members

  • 49 posts
  • LocationLondon & Dorset
  • Framework Version:PL Beta
  • Country: Country Flag

Posted 07 April 2012 - 05:07 PM

That fixed I've now got a problem with search results eg.

Please Login or Register to see this Hidden Content

- 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?

#5 oksodavid

oksodavid

    Advanced Member

  • Members

  • 49 posts
  • LocationLondon & Dorset
  • Framework Version:PL Beta
  • Country: Country Flag

Posted 07 April 2012 - 07:48 PM

Please Login or Register to see this Hidden Content

contains 1 standard post and 1 custom post type and returns the template 'search'.

Please Login or Register to see this Hidden Content

contains 1 custom post type and returns the template 'yoga' (the custom post label). I'm missing something vital!