Title: Dropdown categories &#8211; security
Last modified: August 30, 2016

---

# Dropdown categories – security

 *  Resolved [Sharon Spain](https://wordpress.org/support/users/sharon-spain/)
 * (@sharon-spain)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/dropdown-categories-security/)
 * Hi – The theme I’m using out of the box, has nowhere suitable to put a categories
   dropbox on the home page. Therefore I’ve been looking at the dropbox code example
   shown on your [ page](https://codex.wordpress.org/Function_Reference/wp_dropdown_categories).
 * I finally copied and slightly modified the example with submit button onto a 
   templated area of the theme’s home page, ie;
 *     ```
       <?php echo "<h3>Current Posts</h3>"; ?>
       	<form id="category-select" class="category-select" action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get">
       		<?php wp_dropdown_categories( 'show_count=1&hierarchical=1&orderby=NAME' ); ?>
       		<input type="submit" name="submit" value="View ...." />
       	</form>
       ```
   
 * It works fine, posts to the blog Archives page, but how do I know that its secure–
   ie is it automatically removing erroneous mark-up etc to prevent hacking as it
   would, I’m guessing, normally do using a categories widget, or plugin etc??? 
   Can someone who’s in the know advise on this.
 * Thanks

Viewing 1 replies (of 1 total)

 *  Thread Starter [Sharon Spain](https://wordpress.org/support/users/sharon-spain/)
 * (@sharon-spain)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/dropdown-categories-security/#post-6612186)
 * I’m closing this topic in this forum, as I think it might have been better if
   I’d posted it in the particular theme’s support forum (Responsive). Thanks

Viewing 1 replies (of 1 total)

The topic ‘Dropdown categories – security’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [Sharon Spain](https://wordpress.org/support/users/sharon-spain/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/dropdown-categories-security/#post-6612186)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
