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.
iBlogPro 3 - Categories as Navbar links
Started by
techstuff
, Oct 07 2009 12:43 PM
3 replies to this topic
#1
Posted 07 October 2009 - 12:43 PM
#2
Posted 07 October 2009 - 05:40 PM
I usually recommend people use the 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)
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
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
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
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).
This code is used to get the ID of the Blog page, and display it as the first item in the Navigation Bar.
This lists the categories (in my case only the one I was interested in).
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
I actually wanted to do something similar as well, and was able to achieve it with just a slight modification in the _nav.php
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
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).
This code is used to get the ID of the Blog page, and display it as the first item in the Navigation Bar.
This lists the categories (in my case only the one I was interested in).
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
Posted 15 October 2009 - 12:47 AM
Thanks Stefaan. That was what I needed.









