Choose Specific Category for Facebook Imports

Home Forums Calendar Products Event Aggregator Choose Specific Category for Facebook Imports

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1036609
    rhythmtravels
    Participant

    How can I choose a specific category for the imported Facebook events?

    also when clicking website.com/event/category/festival the events in that category does not appear.

    #1037234
    Brian
    Member

    Hi,

    Thanks for using Facebook Events.

    We do not have a feature to add categories to imported events.

    We have a hook you can connect into that could enable you to add a category for all Facebook Events.

    tribe_events_facebook_event_created

    If you need something more complex then that I encourage you to visit our User Voice Page and either upvote an existing request or make a new request there.

    http://tribe.uservoice.com/

    Let me know if you have any follow up questions.

    Thanks

    #1037311
    rhythmtravels
    Participant

    Hi Brian

    Thank you for your reply, could you please simplyfy the meaning with hook? not so code savvy 🙂

    I’ve seen previous posts (https://theeventscalendar.com/support/forums/topic/set-default-category-for-facecbook-importer/) about same question where we could add a string but I can’t find where to put it in this later version?

    My second question is:
    Why doesnt events appear in its specific category link http://website.com/event/category/festival?

    #1037697
    Brian
    Member

    Hi,

    I came up with this snippet to add a category.

    /**
    * The Events Calendar Facebook Events - Add Category to Imported Events
    * change Facebook Event to the name of the event category
    * @Version 4.0
    */
    add_action( 'tribe_events_facebook_event_created', 'tribe_fb_add_category' );
    function tribe_fb_add_category( $event_id ) {

    wp_set_object_terms( $event_id, 'Facebook Event', 'tribe_events_cat', false );

    }

    Add that to your theme’s functions.php and replace Facebook Event with the name of the category you would like.

    Why doesnt events appear in its specific category link http://website.com/event/category/festival?

    We currently do not support categories from Facebook so there is no coding to deal with it right now.

    Thanks

    #1037761
    rhythmtravels
    Participant

    Hello Brian

    Thank you so much for the snippet! works well!

    The second question was separate from the facebook question. I have events added manually, set to Festival as category and when clicking on the category link these events do not appear. They used to before version 4.0 but not anymore.

    #1037852
    Brian
    Member

    Hi,

    Thanks for using our plugins. I can help out here.

    Do you have a link to the issue?

    It is hard to tell what is going on without see it.

    You can provide it as a private reply if you like.

    Let me know and we can go from here.

    Thanks

    #1037996
    rhythmtravels
    Participant

    This reply is private.

    #1038036
    Brian
    Member

    Can you also provide a link to an event that is suppose to show there, but is not.

    Thanks

    #1076040
    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 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Choose Specific Category for Facebook Imports’ is closed to new replies.