Tag meta key

Home Forums Calendar Products Events Calendar PRO Tag meta key

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #950182
    dotdash
    Participant

    Hello 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

    #950226
    George
    Participant

    Hey 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!
    George

    #950360
    dotdash
    Participant

    This reply is private.

    #950472
    George
    Participant

    Hey 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,
    George

    #983910
    Support Droid
    Keymaster

    This 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Tag meta key’ is closed to new replies.