• Resolved Ynasr

    (@ynasr)


    Hi,

    I am trying to create a page that would allow users to view only the list of events they have created and/or enrolled in. I have no problem filtering by owner id to get the list of events that have been created by a specific user (the one browsing). That said, i am struggling to see how i could also output events that a specific user (the one currently browsing) has joined/booked/enrolled into.

    <?php $user_ID = get_current_user_id(); ?> 
    
    <?php
    
    $args = apply_filters('em_content_events_args', $args);
    
    if( get_option('dbem_css_evlist') ) echo "<div class='css-events-list'>";
    
    echo EM_Events::output_grouped(array( 'limit'=>10, 'pagination'=>1, 'owner'=>$user_ID)); //note we're grabbing the content, not em_get_events_list_grouped function
    
    if( get_option('dbem_css_evlist') ) echo "</div>";

    Please let me know if there is an easy way to do that.

    Best,
    Yvan

    https://ww.wp.xz.cn/plugins/events-manager/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Filter grouped events list’ is closed to new replies.