Title: Adding Tags dropdown to search.php
Last modified: August 20, 2016

---

# Adding Tags dropdown to search.php

 *  Resolved [amgS93](https://wordpress.org/support/users/amgs93/)
 * (@amgs93)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/adding-tags-dropdown-to-searchphp/)
 * Apologies if you covered this in the readme.txt and I just didn’t get it (and
   thanks for this plugin!).
 * I’m trying to add the Tags dropdown to my search results page–the same one that
   works in the widget–but I can’t figure out what field I should be passing to 
   facetious to call it. My best guess was “tag”, but that doesn’t seem to work.
 * Here’s the code I’m using:
 *     ```
       <?php do_action( 'facetious', array(
       	'submit' => 'Search',
       	'fields' => array(
       		's' => 'Keywords: ',
       		'm' => 'Month: ',
       		'category' => 'Category: ',
       		'tag' => 'Tags: '
       	)
       ) ); ?>
       ```
   
 * The search results page I’m working on is here: [http://thesockeye.org/search/money/](http://thesockeye.org/search/money/)
 * [http://wordpress.org/extend/plugins/facetious/](http://wordpress.org/extend/plugins/facetious/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [13 years, 2 months ago](https://wordpress.org/support/topic/adding-tags-dropdown-to-searchphp/#post-3469936)
 * Hi,
 * The name of the actual taxonomy for tags is ‘post_tag’, not ‘tag’. A bit counter-
   intuitive, I know. Give that a go.
 * John.
 *  Thread Starter [amgS93](https://wordpress.org/support/users/amgs93/)
 * (@amgs93)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/adding-tags-dropdown-to-searchphp/#post-3469945)
 * Yes! Resolved, thank you so much. The new, working code I’m using (for other 
   people’s benefit) is:
 *     ```
       <?php do_action( 'facetious', array(
       	'submit' => 'Search',
       	'fields' => array(
       		's' => 'Keywords: ',
       		'm' => 'Month: ',
       		'category' => 'Category: ',
       		'post_tag' => 'Tags: '
       	)
       ) ); ?>
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding Tags dropdown to search.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/facetious.svg)
 * [Facetious](https://wordpress.org/plugins/facetious/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facetious/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facetious/)
 * [Active Topics](https://wordpress.org/support/plugin/facetious/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facetious/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facetious/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [amgS93](https://wordpress.org/support/users/amgs93/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/adding-tags-dropdown-to-searchphp/#post-3469945)
 * Status: resolved