Root level category, tag, author and archive pages to work
I want root level WordPress urls to work for category, tag, author and archive page.
For example right now categories pages are.
I want root level WordPress urls to work for category, tag, author and archive page.
For example right now categories pages are.
get_categories()
and related functions, by default, don’t return empty categories – categories with no posts.
I found this post, but it was never answered. I’m looking for the same thing, haven’t been able to find a solution so far.
I am trying to exclude some categories from a for-loop.
I’m sure this question is asked alot, but I cannot figure it out, since all the different ways to query posts are confusing me..
Is there any way to order posts by category name?
I’m trying to display categories as search result items on top of the search.php
results. There doesn’t seem to be a standard WordPress function or WP Query to search through categories, so I figured I’d write my own MySQL statement.
Scenario: Clients can add or remove posts at will, but may not be comfortable (or even bother) adding categories to a menu.
I prefer using tags and have no interest in using the categories. All my posts now are labeled with a category named “Uncategorized” and I want to turn them off! I want no more categories at all. How can I do that? Please help!
I use the bellow function (thanks to @helgatheviking!) to exclude categories from the wordpress loop. It works very well – posts of selected categories are excluded from the loop on the main blog listing page, from category listing pages and from archives, but not from Recent Posts and not from Recent Comments in sidebar. How can be extended the action of this code also on them?