Forums

[resolved] categories shown like pages? (3 posts)

  1. myinstinctwaswrong
    Member
    Posted 1 year ago #

    If I add a page, it shows across the top of my site with the "Home", "About", and "RSS" links. Is it possible to get the categories shown this way in this area? or am I stuck with the sidebar widget for categories?

    thanks!

  2. Otto42
    Moderator
    Posted 1 year ago #

    If you look at your theme, probably in the header.php file, then there's a bit of code that creates those tabs across the top of your site. While I can't tell you exactly what the code looks like, I can tell you that it uses a call to wp_list_pages to get the list of pages to show.

    Well, if you hack that code a bit and add a similar call to wp_list_categories, then you can make it show the categories as well (or instead, if you prefer).

    You'll want to read up on wp_list_categories, so you know how to use it.

  3. myinstinctwaswrong
    Member
    Posted 1 year ago #

    thanks again for the steer - you are da man. I'll give it a go.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.