WordPress.org

Ready to get started?Download WordPress

Forums

Navigation like wordpress.org (13 posts)

  1. Anonymous
    Unregistered
    Posted 9 years ago #

    I've searched through the documentation but I can't seem to find any info on this subject. I want to create a navigation similar to wordpress.org's: A global navigation based on my categories and for each category I want to display it's relevant subcategories.
    Example:
    My categories are fruit, vegetables, meat
    When I click "fruit" I want to display the subcategories apple, peach, banana, orange etc. in a menu.
    Is that possible?

  2. jslaughter
    Member
    Posted 9 years ago #

    I think that I am looking for exactly the same thing. I've been taking a look at the template functions, but it looks like it's only possible to list categories with

  3. tags. What I would like is a way to list, horizontally, the "top" categories, and then when a category is clicked on, the sub-categories of that category are listed underneath. I could absolutely hack the PHP of wordpress to make this happen, but I'd like to know if there's an elegant/upgrade friendly method.
  • Muffinboy
    Member
    Posted 9 years ago #

    Any list that uses ul/li tags can easily be turned into a horizontal navigation scheme. Check out Listamatic for examples of how to write your CSS code.

  • chiensavant
    Member
    Posted 9 years ago #

    You're looking for something called "breadcrumb" navigation.
    And lucky you, there is a plugin for WordPress that is doing just that !
    http://wordpress.org/support/10/9161

  • jslaughter
    Member
    Posted 9 years ago #

    I don't think that breadcrumb does it (at least not for me). Breadcrumb seems to, well, add breadcrumb links. But what I'm looking for is some kind of persistant navigation. For instance, look at the top of this page. There are links to: home, about, docs, etc. I would like organize my categories like this, horizontally. When one of them is clicked, a sub menu is shown underneath with the currently-selected category's sub-categroies. Does the breadcrumb plugin do this by tweaking the options?

  • Anonymous
    Unregistered
    Posted 9 years ago #

    You'd probably check out the link in Muffinboy's post, and read the part called Horizontal lists. That's what you are looking for.

  • jslaughter
    Member
    Posted 9 years ago #

    Hrmm.. I've checked out the Listamatic site, and it's great. However it's a real mess to deal with *sub* categories when using a horizontal list. I guess I'm going to have to figure this one out.
    Does anybody here have some examples of multi-level lists, done horizontally?

  • Mark (podz)
    Support Maven
    Posted 9 years ago #

    Have a really good read here:
    http://more.ericmeyeroncss.com/projects/06/

  • Anonymous
    Unregistered
    Posted 9 years ago #

    Thanks for the links, but unfortuneately they don't solve the problem. I know it is possible to style list-item and I've seen the breadcrumb plugin but what I want is to show only the subcategories of the currently selected category.
    Example:
    When you click "about" in the navigation bar above the next page shows the associated "subcategories" (Intro, Requirements, Features, Testimonials, Screenshots, Future, Buttons, Contact).
    Thanks in advance :)

  • wairoanz
    Member
    Posted 9 years ago #

    Good points, Anon. I would also like to know the same thing... and I'm wondering if this site is truely "WordPress driven", or an adhoc combination of wordpress/static pages/forum... etc.

  • Mark (podz)
    Support Maven
    Posted 9 years ago #

  • james_anderson
    Member
    Posted 9 years ago #

    I think we all need something that I've discussed over here :
    http://wordpress.org/support/4/15758

  • andjules
    Member
    Posted 9 years ago #

    yes, this should be a manageable task - perhaps a special list plugin:

    simplest:
    given the current top category, autogenerate a list of it's child categories

    a more powerful version might add control/arguments for:
    a) add a 'subcurrent' ID to whatever sub category we're on
    b) control whether it displays sub-subcategories/hierarchical levels
    c) if b), control how much of the tree 'above' the current level is displayed

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.