[wp-hackers] tags, categories and selecting posts
christine at neato.co.nz
Wed Feb 13 07:33:55 GMT 2008
It is possible, but it requires sorta abusing the API a little (I use it
for magic purposes here: http://www.neato.co.nz/tag-search-experimental/ p.s.
it is an experimental interface. May cause birth defects, randomly display
white pages because I'm editing things etc. etc.).
Roughly, if you make a query with the categories and explicitly use the
tag_slug__and (or tag_slug__or) query parameters; then you'll end up with
posts that match the category and tags.
(The way I use it, I create my own query object and set a bunch of
parameters; since I'm conditionally using a bunch. And I just like it
better that way. Alternately, if you pass query_posts an array of values
instead of a query string; I understand that also does the business.)
So the short answer, is that you kindof can already it's just not all glued
together properly (:
On 2/13/08, Burobjorn <burobjorn at gmail.com> wrote:
> Is it possible to use a category and some tags to select a post in the
> 2.3.x version of Wordpress?
> Something along the lines of:
> http://website/?cat=3&tag=foo&bar would give me all posts tagged with
> 'foo' and 'bar' in the category with id 3
> I can see that there is some function get_objects_in_term() in the
> taxanomy.php file which seems to do what I would like to achieve.
> Is this already working in Wordpress, if not is it desired to get this
> working in the core? If yes, how can I be of asisstance?
> All the best and thanks in advance,
> met vriendelijke groet,
> Bjorn Wijers
> * b u r o b j o r n .nl *
> digitaal vakmanschap | digital craftsmanship
> Concordiastraat 68-126
> 3551 EM Utrecht
> The Netherlands
> phone: +31 30 2444 101
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers