Home › Forums › Calendar Products › Event Aggregator › Choose Specific Category for Facebook Imports
- This topic has 8 replies, 3 voices, and was last updated 10 years, 1 month ago by
Support Droid.
-
AuthorPosts
-
December 7, 2015 at 4:03 am #1036609
rhythmtravels
ParticipantHow 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.
December 7, 2015 at 3:27 pm #1037234Brian
MemberHi,
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.
Let me know if you have any follow up questions.
Thanks
December 7, 2015 at 10:53 pm #1037311rhythmtravels
ParticipantHi 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?December 8, 2015 at 8:53 am #1037697Brian
MemberHi,
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
December 8, 2015 at 10:57 am #1037761rhythmtravels
ParticipantHello 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.
December 8, 2015 at 2:35 pm #1037852Brian
MemberHi,
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
December 8, 2015 at 10:51 pm #1037996rhythmtravels
ParticipantThis reply is private.
December 9, 2015 at 4:55 am #1038036Brian
MemberCan you also provide a link to an event that is suppose to show there, but is not.
Thanks
February 18, 2016 at 8:32 am #1076040Support 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 ‘Choose Specific Category for Facebook Imports’ is closed to new replies.
