Query Post Tags
-
I would like to create a search function that takes the values of 2 fields from a form of mine (
$_REQUEST['VST1'] and $_REQUEST['VST2']
) and searches for them as tags.I’ve looked through the codex, and it looks like I need to somehow put them into the
query_posts(tag='');
query.I don’t believe echo-ing them into the query works – like I’ve tried below:
query_posts(tag='echo $_REQUEST['VST1']'+'echo $_REQUEST['VST2']');
What will work?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Query Post Tags’ is closed to new replies.