Events Manager
[resolved] users creating event tags - no option for this when creating new event (5 posts)

  1. omegacoder
    Posted 3 years ago #

    when users create a new event on front-end form, there's no option to include event tags. This seems to be only available on the admin style back end interface

    Can this option be turned on somewhere, or would I need to code in the form entry myself?

    Anyone else have this concern also?


  2. agelonwl
    Posted 3 years ago #


    you can modify template file at wp-content/plugins/events-manager/templates/forms/event-editor.php then add this snippet

    $terms = get_terms(EM_TAXONOMY_TAG);
    <div class="event-tags">
    <select name="newtag[]" multiple size="10">
    	<?php foreach ($terms as $em_tag){ ?>
    	<option value="<?php echo $em_tag->term_id; ?>"><?php echo $em_tag->name; ?></option>
    	<?php } ?>

    then hook into hook into the em_event_save filter - http://wp-events-plugin.com/tutorials/saving-custom-event-information/

  3. omegacoder
    Posted 3 years ago #


    The code snippet you supplied just gives a list of previously created event tags. Ok, this I can probably change to just an input text field so that the user can insert any event tag text to the event.

    But I got stuck when you say hook into the "em_event_save" filter, where do I do this? in events-manager.php? Also event tags comprise of several db tables "wp_terms", "wp_terms_taxonomy" and "wwp_term_relationships", and inserting tags related info into these table together, is a bit more complicated than the styles example in the online tutorial.
    Amittedly I'm new to wordpress, and for the benefit of others that will surely in future encounter this issue can you please give a bit clearer instructions on how to allow users create their own event tags. I will surely be grateful man

  4. omegacoder
    Posted 3 years ago #

    ... also isn't the em_event_save filter only used for custom fields for events. however events tags are infact seperate database entities and exist seperate from events. Since they are more than just events meta information, they are taxonomy terms for events. I've checked out the source files, and theres seperate classes to deal with event taxonomy: em-tag.php and em-tag-taxonomy.php, but these only deal with retrieving taxonomy data, and not saving them

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    the reason this isn't possible atm is because a seperate script needs to be written to save them. At the moment, WP handles the saving of the tags admin-side.

    Something we'll add eventually, but it's in a line with other feature requests.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.