Jump to content


Photo

Secondary nav menu missing on category page/single post


  • Please log in to reply
5 replies to this topic

#1 diva@authenticdiva.ca

diva@authenticdiva.ca

    Newbie

  • Members
  • 2 posts

Posted 13 October 2011 - 11:46 PM

Even though it's showing in the header, the secondary menu is missing on the category page and posts pages. I know it's something simple I'm missing - but what? URL is http://www.thereallifediva.com/

#2 Rob

Rob

    One Smart Egg

  • Moderators
  • 9,866 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 14 October 2011 - 04:38 AM

I suspect that the homepage is in fact a static homepage on which you selected the correct secondary menu to use. Unfortunately, categories, search results and some other page/post types are dynamic, so you cannot select a particular secondary menu. Noting that secondary menus must be selected manually to apply to the particular page or post, there's no way to do it either broadly or dynamically. When you get down to something like http://www.therealli...ctober-11-2011/ in the editing mode, you will find a selection drop down to choose the secondary nav to apply to that particular post. But the category pages aren't "edited" as such. Now there's a way to do it. You won't like it because it's not easy. 1. You need to create and name a secondary nav menu for each category. There are no child or grandchild options for secondary nav, as a side note. 2. You need to create a page (not a post) for each specific category or subcategory you have. Use any template you desire from the list. 3. Download a plugin called TPG Get Posts from http://www.wordpress...extend/plugins. Activate it and use the instructions found via that link to include posts from the applicable category on the matching page. Save. 4. Style the post listings on your page as you wish. I know that thumbnails are possible, but generally TPG doesn't provide them in their default shortcodes. You have to do some serious research and editing. 5. Go back to your page and make any content or style changes you wish. In edit mode, select the secondary nav you created. Save your page. 6. In your main menu, replace the category link you have with its corresponding page (just finished saving). View your homepage... navigate to the menu link you just created and voila, there's your secondary nav. Unfortunately, it still won't work for search results. You'll also have to manually add the secondary nav for that category to all posts in the category. No way to do it globally - a WP function, btw.

#3 diva@authenticdiva.ca

diva@authenticdiva.ca

    Newbie

  • Members
  • 2 posts

Posted 14 October 2011 - 01:43 PM

Thanks - will give the page per category a try and see how it goes. Alternatively, I guess I can pop a menu into the sidebar to take over the secondary nav function so I"ll see how that works as well :) jill :)

#4 Rob

Rob

    One Smart Egg

  • Moderators
  • 9,866 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 14 October 2011 - 05:35 PM

I think you'll find it useful.

#5 jankowalski

jankowalski

    Advocate

  • Members
  • 330 posts
  • Country: Country Flag

Posted 28 October 2011 - 02:56 PM

didn t get this: Activate it and use the instructions found via that link where is this link?

#6 Rob

Rob

    One Smart Egg

  • Moderators
  • 9,866 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 29 October 2011 - 06:16 PM

Jan, my apologies. I wasn't aware people might not think to search once they arrived at the link provided. Here's the specific link: http://wordpress.org.../tpg-get-posts/




Click to return to top of page in style!