Multiple Tag Search WordPress -


wordpress 3.5.2. old construction

?tag=tag1+tag2 

doesn't work more. dunno why. have form check boxes. , tags sorts category. wanna search

tag1+tag2+tag3 

in specific category. how that? i'm tired solution :(

comma separate them:

/** posts of following tags */    $query = new wp_query( 'tag=bread,baking' );  /** posts of following tags */ $query = new wp_query( 'tag=bread+baking+recipe' );  /** or alternatively */ $query = new wp_query( array( 'tag_slug__in' => array( 'bread', 'baking' ) ) ); 

documented here: http://codex.wordpress.org/class_reference/wp_query


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -