Drop Down for Event Submission
-
I’ve been pulling my hair out trying to add a custom taxonomy with the slug “topics” to my events. In the front-end user submission form, I want the user to be able to select from a drop down menu.
I came across this: thread where a solution was proposed. I got the actual taxonomy for “topics” working correctly and they appear under Events Manger in the dashboard.
function get_terms_dropdown($taxonomies, $args){ $myterms = get_terms($taxonomies, $args); foreach($myterms as $term){ $root_url = get_bloginfo('url'); $term_taxonomy=$term->taxonomy; $term_slug=$term->slug; $term_name =$term->name; $value = $term->term_id; $output .="<option value='".$value."'>".$term_name."</option>"; } return $output; }
Based on the above function, how would I call it to get the dropdown menu to display the “topics” I have and allow that topic to be saved with the event?
Thanks so much in advance
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Drop Down for Event Submission’ is closed to new replies.