Support » Fixing WordPress » categories and hierarchy
categories and hierarchy
-
Hi .. I’m trying to make my Category with indentations (with or without the actualy dash .. ) so there is a clear grouping, i.e.
Italy
– Rome
– MilanChina
– Beijing
– Shanghai..
I see the indentation in the edit but not on my actual blog ..
Thanks ..
-
If you can post a URL it will be simple to show you what to do
I’d like to group my categories according to country or region and appear that way in my blog .. but now they just shown in alphabetic order
http://www.bonvoyage.ireneeng.com/
thank you for your help 🙂
Hi
It looks like you have not assigned a parent category to your categories. You want a hierarchical, multiple level category structure. To do so, see this page, the section about Parent Category
http://codex.wordpress.org/Manage_Categories_SubPanel#Edit_CategoryIf you already have assigned parent categories, its just that they are not displaying as such in the sidebar, that would be due to how the sidebar display is configured. In that case, see this page
http://codex.wordpress.org/Template_Tags/wp_list_categories#Parameters – especially the section “hierarchical” and “orderby”.How to use name slug and tag slug?
I read http://codex.wordpress.org/Manage_Categories_SubPanel#Edit_Category
______________________________________
Category Slug
The Category slug must be unique. The Category Slug is used in the URL. For example, setting a Category Name of “Recipes” and a Category Slug of “food” would show all “Recipes” posts with a URL like example.com/blog/food/.
_______________________________________Not sure I understand the slug has to be ‘unique’ – as, for example:
Cat: Recipes, slug: food
Cat: Party, slug: food [can I used ‘food’ again here?]
Cat: BBQ, slug: food
The URL .. ireneeng.com/food/ will show all the posts with food slugs? or ireneeng.com/blog/food/ .. what this /blog/ in reference to here? As a relative unique word I use in few posts .. like ‘Nile’, or ‘have no clue’ 🙂 ??OR .. IF the slug has to be unique .. like this following ??
Cat: Recipes, slug: food
Cat: Party, slug: food1
Cat: BBQ, slug: food2
??
Then how do I URL all the posts with the same slugs?Many thanks, Irene
Hi
Slugs must be unique across the entire category system. You can use food1, food2 but “food” can only exist once.
There is a difference between the NAME/TITLE of a category, and its URL – slug is the URL. You can have more than one category named Food but they can’t have the same URL (slug).
You may want to combine categories and tags. They are two different systems.
Then how do I URL all the posts with the same slugs?
The category system itself takes care of that. You can display a page of all posts that have a slug of food2 –
http://mysite/install_folder/category/food2Hi
It’s me again.
Is there a good post on slug with few more examples so I don’t have to bother you any more?
What’s confusing is: if the category has to be unique, what’s the point of having a slug, which has to be unique too?There is a difference between the NAME/TITLE of a category, and its URL – slug is the URL. You can have more than one category named Food but they can’t have the same URL (slug).
I don’t think I could have two categories both named Food with different slugs. Just tried, won’t let me. Or I didn’t understand your example?
In the Category, the slug usually supplied automatically as identical to the name of the category. When I later changed the name of the cat, the slug reminded unchanged, unless I change it. So slug = URL is kind of confusing too.
Thank you very much for your help.
Irene
how to name 2 categories exactly the same.
First create the 2 categories with different names and different slugs
– Piano (piano)
– Piano 2 (piano-2)
Then, go and edit the 2nd category and rename it to Piano. This works perfectly.The reason for a category name being different than a category slug is that names can include things like capital letters, spaces, and special characters not allowed in URL’s. The slug strips all of that out and replaces spaces with hyphens. This makes working with URL’s much easier
Is there a good example as why would one want to have an identical category but different slugs?
Many thanks.
i have other problem, i have very much category with post
Arts
-music (5post)
-photo (67post)
-picture (x post)and now i want to delete music, photo and picture and move all post from this to arts..
How is this posible..it is some plugin because i am not found..
Thank you
Go to the posts edit page
use the categories dropdown at the top of the page
Set View All Categories instead to Music – then you will see 5 music posts
point at the name of the first post, you will see a menu appear – select Quick Edit
In Quick Edit, change Music category to Arts and Update
Repeat the same for the other posts.I agree that 67 posts in one category is borderline to do one by one. There is a plugin, but its not worth installing for that small # of posts – you would save about 5 minutes over doing it in QuickEdit
- The topic ‘categories and hierarchy’ is closed to new replies.