Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_terms_dropdown($taxonomies, $args){
- $myterms = get_terms($taxonomies, $args);
- $output ="<select>";
- foreach($myterms as $term){
- $term_taxonomy=$term->Categories;
- $term_slug=$term->slug;
- $term_name =$term->name;
- $link = $term_slug;
- $output .="<option value='".$link."'>".$term_name."</option>";
- }
- $output .="</select>";
- return $output;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement