Is it now possible to query multiple categories from the URL?
http://www.mywpsite.com/?cat=1+7
?
I think this has worked for tags for some time. If not, is there another way to achieve this?
|
Is it now possible to query multiple categories from the URL? http://www.mywpsite.com/?cat=1+7 ? I think this has worked for tags for some time. If not, is there another way to achieve this? |
|||
|
|
|
If you have a feature request for WordPress, the best way to get it addressed is to add a ticket on Trac. Then developers can adopt the task, patch WordPress, and submit the improvements to the next version. If a Trac ticket has already been created for a particular feature, you can comment on it to weigh in and follow the subsequent discussion. The last time I checked, there was a ticket for querying multiple terms in a taxonomy (tags, categories, or custom) at the same time: Ticket #12891. According to the ticket, the project is scheduled to be included in WP 3.1. But we won't know for sure until the first release candidate comes out. According to the last scope update before the feature freeze, this is going to be included in 3.1 ... but it won't be "fixed" until 3.1 is actually released. If you want to use the feature now, you have a couple of options:
|
|||
|
|
|
If you specify multiple category ID's separated by commas, they will be combined in For tags you always have to work with slugs. If you separate them with commas, they end up in |
|||
|
Or, you can use scribu's excellent Query Multiple Taxonomies plugin and get the functionality you want today... http://wordpress.org/extend/plugins/query-multiple-taxonomies/ |
|||||
|