/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<form action="<?php bloginfo('url'); ?>/" method="get" class="dropcats" > <?php $select = wp_dropdown_categories('show_option_none=ΕπιλÎξτε ΚατηγοÏία:&show_count=0&heirarchial=1&orderby=ID&echo=0'); $select = preg_replace("#<select([^>]*)>#", "<select$1 onchange='return this.form.submit()'>", $select); echo $select; ?> <noscript><input type="submit" value="View" /></noscript> </form>
Comments
