• Resolved André

    (@andrebehrendt)


    Hello,
    I would like to show all events where the host is either current or a specific host.
    If I enter “current”, the appropriate events are displayed.
    I enter “1”, corresponding to that of 1.
    If I enter “current,1”, I don’t get any appointments displayed, but I would like to see them from both.`

    Tahnks
    André

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Thanks for reporting this! I’d consider this a bug, and I’ll look at it for the next release. The problem is that My Calendar considers the ‘current’ keyword to mean “only the current user”, and doesn’t combine it with other values. For immediate use, you could get the current user by using a scripted shortcode in a template, e.g.

    
    $user_id = wp_get_current_user()->ID;
    $hosts   = "$user_id, 1";
    $shortcode = "[my_calendar host='$hosts']";
    echo do_shortcode( $shortcode );
    
    Thread Starter André

    (@andrebehrendt)

    thanks, thats works for my test environment.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Filter by host’ is closed to new replies.