/ Published in: PHP
Expand |
Embed | Plain Text
<h2>Categories</h2> <ul> <?php wp_list_cats('sort_column=name'); ?> </ul> <form action="<?php bloginfo('url'); ?>/" method="get"> <?php $select = wp_dropdown_categories('show_option_none=Select category&show_count=1&orderby=name&echo=0'); $select = preg_replace("#<select([^>]*)>#”, “<select$1 onchange=’return this.form.submit()’>”, $select); echo $select; ?> <noscript><input type=”submit” value=”View” /></noscript> </form>
You need to login to post a comment.
