WordPress.org

Ready to get started?Download WordPress

Forums

dropdown_cats() : Show only a selected Categories Children (1 post)

  1. Willuknight
    Member
    Posted 8 years ago #

    I am using the form based drop down category menu.
    http://codex.wordpress.org/Template_Tags/dropdown_cats

    Lets outline an example tree, for this post.

    ~~~~~~~~~~
    Reviews
    -TV
    -Books
    -Media
    Site
    News
    Thoughts
    ~~~~~~~~~

    Now, for with the dropdown_cats() default code installed, it will show the above categories all in one list, irrespective of Child or parent category.

    What i want to do is have 2x dropdown_cats() sections.
    The first one, will exclude Reviews and its child categories, eg.

    ~~~~~~~
    Site
    News
    Thoughts
    ~~~~~~~

    The second list, would show all of one categories children, (eg. Reviews) in the drop down list. This would show:

    ~~~~~~~~
    REVIEWS (title, could be plain text)
    Books (entry in the drop down list)
    Media (entry in the drop down list)
    TV (entry in the drop down list)
    ~~~~~~~

    Can someone tell me how/if this could be done ? I've looked at the dropdown_cats() page, but i don't know anything about CSS/php and i am new to all this

    Thankyou in advance
    William

Topic Closed

This topic has been closed to new replies.

About this Topic