WordPress.org

Ready to get started?Download WordPress

Forums

Certain categories under certain headings? (11 posts)

  1. icyflare
    Member
    Posted 8 years ago #

    Hello I am working on a blog, and I have no experience in php or css. I mainly just look through the code and try things out a lot, until it works. What I'm trying to do, is bascially put certain categories under certain headings on my sidebar. Ex. Sports heading with my categories like Hockey Basketball, etc.

    Then a Media heading with like my television category, music, etc.

    Thanks for help!

  2. moshu
    Member
    Posted 8 years ago #

    Why not have a "parent" category Media and subcategories under it: tv, music etc. ?

  3. icyflare
    Member
    Posted 8 years ago #

    My skin parent category if theres no posts in it, so this is bascially what I want.

    I can say the category name myself with text, then show every sub category of the parent under it, by listing the parent category. The thing is that I'm not sure how to do this, as my category menu shows all cateogries.

  4. icyflare
    Member
    Posted 8 years ago #

    Oh wait I know what you mean. But what I'm trying to get is liek an entire header for the categories, not just a larger heading. On my blog for exmaple, the links section is an entire header as well as trhe categories section.

  5. icyflare
    Member
    Posted 8 years ago #

    does anyone happen to know? I'm probably looking for some sort of php include tag that only includes a category #

  6. moshu
    Member
    Posted 8 years ago #

    Still not clear what you'd like to do, but see if any of these tags can do what you want:
    http://codex.wordpress.org/Template_Tags#Category_tags

  7. Seeria
    Member
    Posted 8 years ago #

    I think what he wants is for the catagories (parent ones, maybe all as well) to show up even if there are no posts under it. A perma one.

    Same thing I'm looking for.

  8. moshu
    Member
    Posted 8 years ago #

    @Seeria,
    if that's all you want - read the Codex. E.g. http://codex.wordpress.org/Template_Tags/wp_list_cats
    (parameters)

  9. icyflare
    Member
    Posted 8 years ago #

    What i mean is like

    Heading
    <1 category>

    Another heading
    <2nd category>

    probably would have some sort of php include category =1 or something but i'm not sure what to do

  10. icyflare
    Member
    Posted 8 years ago #

    like I'll have one haeding which i put myself in sidebar .php, then ill include just one category, in this case the main category which will show all my subcategories.

  11. icyflare
    Member
    Posted 8 years ago #

    Let me rephrase, is there a php code for me to insert only one cateogry? or is the list_cats thing have to do ALL Categories

Topic Closed

This topic has been closed to new replies.

About this Topic