Tag Archive and Search Archive…
-
One my Tag Archive page, I’m able match the Tag_ID with information in another data table then display that information on the Tag Archive page. I would like to display the same information on the Search Archive page, but the documentation for get_search_query isn’t nearly as complete.
Here is what I’m using to match my Tag_ID to my custom data table:
$wp_tagID = get_query_var('tag_id'); mysql_select_db("jwrbloom_wpHHR"); $query = 'SELECT * FROM wp_playerRank'; $results = mysql_query($query); while($line = mysql_fetch_assoc($results)) { if ($line['wpID'] == $wp_tagID) {
I’d like to extend that to Search Archive, and I”m assuming I would use get_search_query.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Tag Archive and Search Archive…’ is closed to new replies.