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.
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)
Viewing 1 replies (of 1 total)
- The topic ‘Dropdown categories – security’ is closed to new replies.