Jump to content


Photo
- - - - -

iBlogPro 3 - Categories as Navbar links


This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1 techstuff

techstuff

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 07 October 2009 - 12:43 PM

How can I make Categories appear as page links in the navbar? I thought this was in the theme options but I don't see it.

#2 arpowers

arpowers

    Founder

  • Administrators
  • 3271 posts

Posted 07 October 2009 - 05:40 PM

I usually recommend people use the

Please Login or Register to see this Hidden Content

plugin for nav item tweaks.

I might have to look closer at this because its an often requested feature. WP doesn't make it easy to mix pages and category links
(different function calls wp_list_pages and wp_list_categories)

#3 slesage

slesage

    Member

  • Members
  • PipPip
  • 10 posts

Posted 08 October 2009 - 04:07 PM

Hi,

I actually wanted to do something similar as well, and was able to achieve it with just a slight modification in the _nav.php

Please Login or Register to see this Hidden Content


If you take a closer look at the code, you'll see I added 3 lines of code (replacing the original one which I left in comments). The call to

Please Login or Register to see this Hidden Content


Is what you actually needed. In my case I only wanted one category to appear, so I added the ID of that category in the Include parameter.

In my example, I wanted my Blog posts page to appear first, then my category and after that all other pages (except the front page which is the Featured Page).

Please Login or Register to see this Hidden Content


This code is used to get the ID of the Blog page, and display it as the first item in the Navigation Bar.

Please Login or Register to see this Hidden Content


This lists the categories (in my case only the one I was interested in).

Please Login or Register to see this Hidden Content


And this last piece of code displays all pages (except for the Blog Page since we already have that one, and the Featured Page since we don't want to show that one.

Hope this is of any use to you.

Regards,

Stefaan

#4 techstuff

techstuff

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 15 October 2009 - 12:47 AM

Thanks Stefaan. That was what I needed.

Please Login or Register to see this Hidden Content