• Hey guys! Sorry about my lame username (1234)….Anyway, I am having hard time trying to put categories in my navbar.

    From what I understand I get the category ID # and plug it into the header.php…..right? Where?

    I know you can check out wp_list_categories, but for some reason I just don’t understand it.

    Anyone have a simple way to explain what code to put and where to drop it?

    Thnaks,
    Adam

    https://mlmprofitmentors.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • What about just using the Category Widget?

    But, look at the WordPress Default theme and the wp-content/themes/default/sidebar.php and how it uses the template tag, wp_list_categories().

    Also the Amazing Grace theme uses both categories and pages in the header.
    https://www.ads-software.com/extend/themes/amazing-grace

    Thread Starter adam1234

    (@adam1234)

    Holy crap I’m confused. Let me try to explain better what I’m doing.

    Instead of creating just new pages I want to have category pages in the top navbar, that way I can have several posts on different subjects in that section.

    One category I want to have is going to be “News and Articles” in the navbar. When hovered over it will drop down with several topics all being its own post.

    I was told I had to take the “cat_ID” url and place it somewhere in the header.php. Is this right? If so then where?

    I apologize but when I read the wp_list_categories I seem to get more confused.

    Thanks

    Adam

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Categories In Navbar’ is closed to new replies.