• Hi, I have a site about music: https://www.ragnarockmusic.com/

    As you’ll see I have different genres of music listed in the categories section on the top right, but I also have sections like “music in the movies,” “new writers,” etc. What I would like to do is have a “genres” section above “categories,” where only the music genre links are so that the categories section is just for the other stuff like “new writers” and “artist of the month.”

    Is this possible to do if the are all technically categories? i was thinking it could be done with a plug-in where I added to categories i want separate from the “categories” section, and named that group of categories “genres.”

    do you know what i mean? any help at doing this would be greatly appreciated. thanks!

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hi

    Categories can be hierarchical – that is probably your solution.

    You can create a category called Categories and make it the parent category of all the categories you have already created. Then make a new category called Genres, and make new sub-categories for Genres, making Genres the parent of all of those categories. Then they can display in the sidebar as you desire.

    There is a plugin called MyCategoryOrder that lets you reorder categories, both parent categories and children, in any order that you wish.

    Thread Starter aesamattki

    (@aesamattki)

    Is there any other way to do this? I’d like to make the navigation as simple for the readers as possible.

    Maybe I didn’t explain this clearly enough. What I wrote is how you can accomplish exactly what you said you wanted to do in your first post, without even needing the plugin you thought it might require. Its as simple as what you already asked for!

    Thread Starter aesamattki

    (@aesamattki)

    No, what I meant was I wanted a “Genres” sections, like the categories, authors, links, and meta sections. “Genres” would be in dark red, and links would be under that.

    Your way is useful, but I want it so genres is completely separate of all other categories.

    I want it so genres is completely separate of all other categories.

    That is EXACTLY, PRECISELY what I explained to you how to do, in what I said above.

    Thread Starter aesamattki

    (@aesamattki)

    dude, no it isn’t. i installed the plugin you suggested and tried it out. it doesn’t offer a way to separate them with another section like the “categories, authors, archives, meta.” you see the DARK red titles of each part? THAT’s what i want. I don’t care about having genres on top. of the other links. I want it’s own section with “genres” as the title in dark red. look at the site and see what i mean if you’re confused.

    You installed the plugin but evidently did not make the other changes I suggested.

    Create a NEW category named Categories. Modify all your existing categories to make the new one, Categories, their parent category.

    Make another new category called Genres. Make Genres the parent of all the categories you want displayed under Genres on your menu.

    What I did not say before is you will need to adjust the parameters set in wp_list_categories in your sidebar code. It will also require a few CSS tweaks to get the size and indentation set up correctly.

    Thinking this through, you are better off to include wp_list_categories twice in the sidebar. In the first one, set it to display only the children of the parent category Categories. In the second, set it to only display the children of the parent category Genres. That creates the two sections you are looking for.

    See this page to learn how to configure wp_list_categories in your sidebar.
    https://codex.www.ads-software.com/Template_Tags/wp_list_categories

    Thread Starter aesamattki

    (@aesamattki)

    Okay, that sounds more like what I’m looking for now. Thanks, I’ll give it a try.

    Thread Starter aesamattki

    (@aesamattki)

    Okay, one last question about this. I set everything up without the plugin, and it’s working pretty well so far. I just need to figure out how to exclude the “Categories” section from displaying the child categories (the genres). How would I do this?

    I’m following this thread and aesamattki —— since it looks like you didn’t need the plugin, I wanted to ask you how you’ve set up your blog to have different category headings (and different subcategories under each category). Where are you placing the code? I’m struggling with this as well, so any help is appreciated! Thanks.

    Thread Starter aesamattki

    (@aesamattki)

    If you go to “edit theme” and click the sidebar.php link on the right you can edit the sidebar. I just edited it there. Let me know if you need more help.

    Genres is not supposed to have Categories as a parent. It is at the top level, just as Categories is – no parent.

    You use wp_list_categories twice – once to display the children of Genres, once to display the children of Categories. As long as Genres is not a child of Categories, and you have the use of wp_list_categories for Categories set up correctly, you will not see Genres or its children under Categories.

    The plugin I mentioned last night was in case you wanted, within Categories or Genres, to have the order of the children arranged in your own way.

    Thread Starter aesamattki

    (@aesamattki)

    Ohhhhh, I see. Thank you for all your help.

    =)

    aesamattki —— yes, I’m afraid I need more specific help. I’m very new at this and am a little timid about diving into the sidebar.php. I read through the link above, but just want to ask exactly how you modified it to get your separate categories. Thanks in advance.

    Use Extended Categories! i was able to easily to what you wanted for your site on mine with it. no codes needed, you just install add a new widget category and you can choose which child or adult category you want displayed on that list!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Separate Category Links’ is closed to new replies.