WordPress.org

Ready to get started?Download WordPress

Forums

Automatic Listing of Parent Categories and Subcategories (3 posts)

  1. sevenupcan
    Member
    Posted 9 years ago #

    I've been trying for a couple of hours now to list my categories on my site in their appropriate parent categories, without having to use the exlude attribute. However I am not getting anywhere. I'm quite new to both WordPress and php.

    What I would like to create is something like this,

    Etras (10)
    - Icons (2)
    - Desktops (3)
    - Interviews (5)

    Articles (9)
    - Web design (3)
    - Graphics design (2)
    - Coding (4)

    I've searched through the forums to find anything related to my issue, and have found http://wordpress.org/support/topic/14395#post-83704 however I still cannot find the answer to my problem.

    I'm using WP 1.5.1. Any suggestions would be great, I have read about category tags on the Codex but still struggle to work out a solution. Perhaps if someone already knows they could explain to me how it works?

    Thank-you for your time and effort.

  2. Denis de Bernardy
    Member
    Posted 9 years ago #

    WordPress is very limited here, as it will exclude empty categories. The trick I used until I stopped using categories almost entirely was to put the posts in each category beneath it, e.g. in 'Web Design' _and_ 'Articles' in your example.

    alternatively, you can code a new list categories function and submit it for addition to the code base. i trust it will be warmly welcomed by those who have the same problem as you do.

  3. buzolich
    Member
    Posted 9 years ago #

    The Explicit Category Order plugin can do something like that.

    Look at the categories on the right side of recipe page: Cara's Recipes

    If you need help with it, let me know.

    my gmail account name is buzolich

Topic Closed

This topic has been closed to new replies.

About this Topic