Support » Plugins and Hacks » single_cat_title slug?
10 years, 7 months ago
single_cat_title gives me the title, but how can I get only the «slug» part of the URL?
9 years, 11 months ago
I join Moldarin in his request, even if it’s 8 months old.
I was just looking at this. If you are in a category archive, this should give you the category slug.
$this_category = get_category($cat);
I have a question on catagories. I know that the list cat shows all catagories in a list.eg. blogroll, my blogs, partners ect. If the code is placed in the sidebar all these are listed.
What i am trying to do is from the catagoies list i would like to place say my blogs into the other sidebar on its own without the other catagories.
how do I do this?
Hope you can understand what I’m trying to do.
I think I understand.. I think you want wp_list_categories() to dislay the post categories, and wp_get_links() to display the links.