Tag Info

New answers tagged


All three of your dropdowns have the same name in the args so I'm guessing the last one is being used as the default. Give each one a unique name in the args and then use that name to pull the info from $_POST


You could do it for example like this: function wpse182116_get_categories_starting_with($word) { $categories = get_categories(); if (!empty($categories)) { $relevant_ids = array(); foreach($categories as $c) { $cat_name = $c->name; if(substr($cat_name, 0, strlen($word)) == $word) { $relevant_ids[] = ...


You can try this code below $args = array( 'orderby' => 'name', 'order' => 'ASC', 'name__like' => '%LIKE%', 'description__like' => '%LIKE%', ); $terms = get_terms( array( "taxonomy" ), $args ); See more in Codex

Top 50 recent answers are included