WordPress.org

Ready to get started?Download WordPress

Forums

Categories: Parent AND Child Display as Default? (4 posts)

  1. missadventures
    Member
    Posted 7 years ago #

    I am a bit of a newbie with WP, and have a question about categories.

    I haven't had a chance to get my blog really up and running yet, so I'm wondering if it is the default state that WP displays both child and parent categories, or is this a function of the theme I am using?

    I like the way the categories display for this site: http://www.aluxurytravelblog.com/. I'd love to be able to display my posts that way, too.

    Any help or advice will be appreciated!

    Thanks!
    M

  2. Kafkaesqui

    Posted 7 years ago #

    A little lost on exactly what you're asking for here, but if by "I like the way the categories display for this site" you mean the category listings on the sidebar displaying a hierarchy and/or post count, see the information on the 'hierarchical' and 'optioncount' parameters for wp_list_cats():

    http://codex.wordpress.org/Template_Tags/wp_list_cats

    If this is not what you meant, please provide details as to what you're looking to do.

  3. missadventures
    Member
    Posted 7 years ago #

    That is somewhat helpful, yet a bit confusing for me. What I'd like to do is make sure that the category hierarchy is always displayed. For example, there are 5 posts in the category "Accommodations." The subcategory "Hotels" has 4 posts and "Bed and Breakfasts" has 1 post. I want the categories to display like:

    Accommodations (5)
    Hotels (4)
    Bed and Breakfasts (1)

    And so on...

    Is there somewhere in the category area where I can just specify this, rather than going through and adjusting the css coding?

  4. missadventures
    Member
    Posted 7 years ago #

    I'm getting my blog more to my liking. But, I've another question regarding parent/child categories.

    As you'll see on my blog - http://www.italofile.com - I figured out how to list categories in the sidebar. Now, I want that the categories (aka "tags") listed under single posts list in some sort of organized fashion. For example, post "Regata della Befana, Venice" list tags like this:

    Tag: Italofiles, Veneto, Festivals and Events, Out and About, By Area, Venice

    I'd prefer them to look like this (hierarchical and alpha):

    Tag: Italofiles, By Area, Veneto, Venice, Festivals and Events, Out and About

    Suggestions are appreciated!

    Thanks, M

Topic Closed

This topic has been closed to new replies.

About this Topic