WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] jump menu to display posts from only one category (1 post)

  1. nadine00
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic