WordPress.org

Support

Support » Plugins and Hacks » Hacks » query_posts() problem with multiple tags since 3.1 update

query_posts() problem with multiple tags since 3.1 update

  • First of all, hi to everyone and thanks for reading or replying this post.

    I have a problem on a function where I have been using query_posts()
    with multiple tags as parameter, like this:
    myfunction(“tag=tag1+tag2”).
    Until now it worked quite well, but since the 3.1 update, it has been showing no posts. I want to know if there’s a possibility that it could be a bug or an error.

    I thought it would have something to do about the use of taxonomy, but as I see at the Codex:
    http://codex.wordpress.org/Function_Reference/query_posts#Tag_Parameters

    query_posts( ‘tag=bread+baking+recipe’ );

    It’s still fine to use it.

    The thing that makes me more confused is the fact that if I try
    “tag=tag1,tag2” instead of “tag=tag1+tag2”, it WORKS! (but I want to force AND “+”, not OR “,”).

    Thanks again for your time.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘query_posts() problem with multiple tags since 3.1 update’ is closed to new replies.