• Resolved myinstinctwaswrong

    (@myinstinctwaswrong)


    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    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.

    Thread Starter myinstinctwaswrong

    (@myinstinctwaswrong)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘categories shown like pages?’ is closed to new replies.