Home › Forums › Calendar Products › Events Calendar PRO › Tag meta key
- This topic has 4 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
March 23, 2015 at 10:24 am #950182
dotdash
ParticipantHello there,
I am looking for the meta key for event tags. Where would I find this?
I couldn’t see it amongst these: https://theeventscalendar.com/knowledgebase/wordpress-post-meta-data/
Cheers,
Spencer
March 23, 2015 at 12:42 pm #950226George
ParticipantHey Spencer,
I’m not quite sure what you mean by the meta key for tags – one thing to point out is that taxonomy relationships are not built within the post meta for a given item.
Can you clarify exactly what you mean here? If you’re just trying to get the given number of tags for an event, I’d recommend looking into using any of the default WordPress functions that let you get tags of a specific item – for example, wp_get_post_tags(): https://codex.wordpress.org/Function_Reference/wp_get_post_tags
You can use a function like this because the “Tags” for events are just normal post_tags within WordPress.
Let us know if this helps!
GeorgeMarch 24, 2015 at 3:05 am #950360dotdash
ParticipantThis reply is private.
March 24, 2015 at 7:27 am #950472George
ParticipantHey Spencer,
Thanks for the update – however, I unfortunately am still not quite sure what you mean. If you need to use something on the same meta level as _EventStartDate, then the only other default Events-related meta keys are in the knowledgebase article you linked to above → https://theeventscalendar.com/knowledgebase/wordpress-post-meta-data/
To retrieve the tags attached to an event, this is not something that is revealed within the post meta. It’s a separate kind of relationship altogether, within WordPress. There is post meta, which has the meta keys and meta values relationship tied to a specific post, and then are post taxonomies, which are entirely separate from this. To get the tags of a post/event, you’d need to use a function like the one I linked to in my reply above.
Does the information here help? If not, please describe why in detail and we’ll try our best to give a better response! 🙂
Thanks,
GeorgeJuly 7, 2015 at 6:31 am #983910Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Tag meta key’ is closed to new replies.
