Assigning Event to a User

Home Forums Welcome! Pre-Sales Questions Assigning Event to a User

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1082492
    Patrick
    Guest

    Hi,
    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.
    Regards

    Patrick

    #1082771
    George
    Participant

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

    #1088161
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Assigning Event to a User’ is closed to new replies.