Title: Category Dropdown
Last modified: June 11, 2026

---

# Category Dropdown

 *  Resolved [paulabbeymecca](https://wordpress.org/support/users/paulabbeymecca/)
 * (@paulabbeymecca)
 * [3 weeks, 4 days ago](https://wordpress.org/support/topic/category-dropdown-9/)
 * Is it possible to setup the Category display as a dropdown instead of listing
   all categories at once?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcategory-dropdown-9%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Paolo](https://wordpress.org/support/users/paoltaia/)
 * (@paoltaia)
 * [3 weeks, 4 days ago](https://wordpress.org/support/topic/category-dropdown-9/#post-18935809)
 * Hi, not using the GD Categories block, but there is a Gutenberg block that can
   help you with that.
   It is called: Terms ListHowever, it will not use the default
   pretty permalink.Instead of sending user to a link like this: [https://abbeymeccadev.com/nyspia/places/category/chiropractor/](https://abbeymeccadev.com/nyspia/places/category/chiropractor/)
   It will send them to a link like this: [https://abbeymeccadev.com/nyspia/?gd_placecategory=chiropractor](https://abbeymeccadev.com/nyspia/places/category/chiropractor/)
 * It’s one or the other…
 *  [Rachid](https://wordpress.org/support/users/tartamata/)
 * (@tartamata)
 * [3 weeks, 4 days ago](https://wordpress.org/support/topic/category-dropdown-9/#post-18935828)
 * Hey, 
   Paolo’s solution works, but yeah, it gives you those ugly query string 
   URLs instead of clean permalinks. If you want to keep the pretty URLs without
   the redirect overhead, just drop in a quick custom shortcode, example:
 *     ```wp-block-code
       function gd_category_dropdown_pretty() {    $terms = get_terms([        'taxonomy'   => 'gd_placecategory',        'hide_empty' => true,    ]);        if (empty($terms) || is_wp_error($terms)) {        return '';    }        ob_start();    ?>    <select onchange="if(this.value) window.location.href=this.value;">        <option value=""><?php _e('Select Category', 'geodirectory'); ?></option>        <?php foreach ($terms as $term) :             $link = get_term_link($term);            if (is_wp_error($link)) continue;        ?>            <option value="<?php echo esc_url($link); ?>">                <?php echo esc_html($term->name); ?>            </option>        <?php endforeach; ?>    </select>    <?php    return ob_get_clean();}add_shortcode('gd_cat_dropdown_pretty', 'gd_category_dropdown_pretty');
       ```
   
 * Add that to your theme’s functions.php or a code snippets plugin. Then just use[
   gd_cat_dropdown_pretty] anywhere.

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcategory-dropdown-9%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/geodirectory/assets/icon-256x256.jpg?rev=2778361)
 * [GeoDirectory - WP Business Directory Plugin and Classified Listings Directory](https://wordpress.org/plugins/geodirectory/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geodirectory/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geodirectory/)
 * [Active Topics](https://wordpress.org/support/plugin/geodirectory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geodirectory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geodirectory/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Rachid](https://wordpress.org/support/users/tartamata/)
 * Last activity: [3 weeks, 4 days ago](https://wordpress.org/support/topic/category-dropdown-9/#post-18935828)
 * Status: resolved