Tags not saved when saving events
-
Event tags are not saved when saving an event, unless an event category is also chosen. When creating or updating an event or recurring event, the event tags are not saved correctly. I have narrowed it down to this spot of code (lines 1841-1849 in events-manager\classes\em-event.php):
$tax_slugs_count = count($categories); foreach($post_ids as $post_id){ if( $cat_slugs_count > 0 && !EM_MS_GLOBAL ){ wp_set_object_terms($post_id, $cat_slugs, EM_TAXONOMY_CATEGORY); } if( $tax_slugs_count > 0 ){ wp_set_object_terms($post_id, $tax_slugs, EM_TAXONOMY_TAG); } }
If the first line in this code block is changed to:
$tax_slugs_count = count($tags);
then the code works fine and updates the tags.
Can this please be fixed in the next release? I’ve made the change locally on my installation, but I don’t want it to be overwritten in the next revision.
Thank you for the excellent work!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Tags not saved when saving events’ is closed to new replies.