Home › Forums › Welcome! › Pre-Sales Questions › Assigning Event to a User
- This topic has 2 replies, 2 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
February 26, 2016 at 9:05 am #1082492
Patrick
GuestHi,
before I purchase the pro version of ‘the events calender’ I have a question about it. We plan a project to present employees via a job-wordpress-theme (e.g. jobmonster). These employees are public humans who are giving workshops etc. On each employee, there should be the possibility to enter and present specific events in the sidebar.E.g.
John: 1 Event on Friday ….
Lisa: 1 Event on Sunday …Is it possible, to assign events to specific users or in this case to employees? Or is it possible to show specific events in the sidebar? The plan is to have about 300 employees, so the whole thing should be clearly arranged.
Thanks for your help.
RegardsPatrick
February 26, 2016 at 4:24 pm #1082771George
ParticipantHey Patrick,
Thanks for reaching out!
The sort of user-by-user event listing you describe here is unfortunately not possible unless you were to write custom code to do that—or hire someone to write that custom code for you.
If each user is the “author” of their own events, then you can retrieve events by author by specifying an ‘author’ parameter in function calls of tribe_get_events(), like this:
$events_for_author_123 = tribe_get_events( array(
'posts_per_page' => 5,
'start_date' => current_time( 'Y-m-d' ),
'author' => array( 123 )
));
This example code gets the next 5 upcoming events from the user on your site whose User ID is 123.
We cannot help with custom coding, so there is unfortunately not much more insight I can provide in terms of custom examples and such, but we have an article on using tribe_get_events() here that might be helpful → https://theeventscalendar.com/knowledgebase/using-tribe_get_events/
Thanks for reaching out. The features you are trying to implement are possible, but would unfortunately require many code customizations to implement 🙁
If you are interesting in hiring a professional developer to write the custom code for you, we have a list of great developers here → http://m.tri.be/18k1 (and have no affiliation with any of these folks–they’re simple some well-respected names in the community that we’ve compiled to share in situations like this one).
Thank you!
GeorgeMarch 12, 2016 at 8:35 am #1088161Support 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 ‘Assigning Event to a User’ is closed to new replies.
