Support » Fixing WordPress » jump menu to display posts from only one category

  • Resolved nadine00

    (@nadine00)


    Hi,

    I’m trying to make a jump menu that will display post titles from only one category. I’m using this as a base:

    <?php
    	$select = wp_dropdown_categories('show_option_none=Exhibitors&show_count=1&echo=0');
    	$select = preg_replace("#<select([^>]*)>#", "<select$1 onchange='return this.form.submit()'>", $select);
    	echo $select;
    ?>
    	<noscript><input type="submit" value="View" /></noscript>
    	</form>

    I’ve tried child_of which didn’t work, and i’m currently trying to maybe do this with maybe get_cat_ID but am not sure.

    I’ve used a the Drop-Down Post List v1.33 but it only supports using it for one category globally, and I need something more flexible.

    Suggestions?

    Thanks

    Nadine

  • The topic ‘jump menu to display posts from only one category’ is closed to new replies.