Adding tags to events (code from FAQs not working)

Home Forums Calendar Products Events Calendar PRO Adding tags to events (code from FAQs not working)

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #18115
    Isaac
    Member

    Hi, I’m trying to add tags to my events (for Admin interface and front-end), but I just can’t see how… I tried using the piece of code provided in the FAQs for my functions.php file: register_taxonomy_for_object_type(‘tribe_events’, ‘tags’);

    However, this doesn’t seem to do any change for me… Is there any other code I could use to enable the use of tags for my events?

    Any help is greatly appreciated!!

    Thanks

    #18117
    Henry
    Member

    I think it is post_tags or post_tag that you need and not “tags”

    Try using:

    register_taxonomy_for_object_type(‘tribe_events’, ‘post_tags’);

    #18119
    Isaac
    Member

    Hi Henry… This doesn’t seem to work 🙁 What could be the problem, please?

    #18124
    Henry
    Member

    Ah. Maybe try this:

    http://pastie.org/3838391

    #18125
    Isaac
    Member

    This isn’t working either 🙁 I tried the new code with post_tag or post_tags… Is there another way I could try enabling tags for events please?

    #18127
    Henry
    Member

    It is actually post_tag that you need to use. I did some digging.

    I don’t know how else you could do this without hacking the core. Maybe one of the developers (Rob or Jonah) may know a way?

    #18157
    Rob
    Member

    Thanks for the heads up, guys. Let me see what Jonah has to say when he hits the forums this morning. Stay tuned.

    #18179
    Jonah
    Participant

    Hey Isaac, try throwing it into a function and hooking into the init action like so:

    function run_init() {
    register_taxonomy_for_object_type('post_tag', 'tribe_events');
    }
    add_action('init','run_init');

    #18195
    Isaac
    Member

    Thanks Jonah! This worked great!! 🙂

    #18210
    Rob
    Member

    Excellent to hear it, Isaac. Let us know if we can do anything else down the road and thanks again for your support.

    #976647
    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 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Adding tags to events (code from FAQs not working)’ is closed to new replies.