WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Sub Navigation in relation to their respected categories. (5 posts)

  1. siounis
    Member
    Posted 7 years ago #

    I got a navigation bar on the top of my page thats not not generated by WP that links to my current categories.

    Check it out:
    What I got:
    http://www.f-ram.net/images/wphelp_1.gif

    What I would like to have:
    http://www.f-ram.net/images/wphelp_2.gif

    Now, I got Pages + Posts for said categories. How can I possibly make a sub-navigation bar to appear when im browsing a respect categories.

    I know of plugins that change the theme of a site when browsing categories, though I cant find them and I think that’s too complex for something this simple.

    A friend of mine knows of a way to specify which header a post or page should show, then all I have to do is make a bunch of different headers for each category. Then use that WP tag to make custom categorie.php pages and I think id get it.

    Does anyone know of any information that might help?

  2. siounis
    Member
    Posted 7 years ago #

    bit more info:

    i have a bunch of projects that are set into categories.

    you check out the "Clown Man" project, that gives you a sub nav linking to the pages+posts of that cat. Dig?

  3. siounis
    Member
    Posted 7 years ago #

    the if ( in_category('#') ) command

    <?php if ( in_category('20') ) { ?>
    <div align="center"> This is wear the sub menu should be </div>
    <?php } ?>

  4. moshu
    Member
    Posted 7 years ago #

    Now, I got Pages + Posts for said categories.

    No, you don't. Pages don't have categtories.

  5. siounis
    Member
    Posted 7 years ago #

    oh i got a plug in that allows pages to have categories :)

Topic Closed

This topic has been closed to new replies.

About this Topic