Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    We are planning on developing “Map view” down the road, I can give you the time, when will it be released, but this is already in the upcoming features document.

    This feature is not available at this time.

    Thanks

    Thread Starter rodeored

    (@rodeored)

    What about filter by wordpress user id?

    Hello,

    You want to filter by the author of the event? This filter is not available in the front end. You can only filter by event category and tags.

    Thanks

    Thread Starter rodeored

    (@rodeored)

    The author’s id must somehow be connected to the events in the database, so I would think its possible to filter by the author in the query.
    Which query actually gets the event instances for the calendar?

    Thread Starter rodeored

    (@rodeored)

    This seems to work, I don’t know if its breaking any rules or not. I query wp_posts for user specific post ids and then use those to filter.

    if($_GET[‘uid’]){
    $sql=”SELECT id FROM wp_posts WHERE post_author =”.$_GET[‘uid’];
    $posts=dbFetch($sql);
    foreach($posts as $post)
    $ids[]=$post->id;
    }
    echo do_shortcode(‘[ai1ec post_id=”‘.implode(“,”,$ids).'”]’);

    Hello,

    Are you able to filter by author in the front end? Can you please share your link and in which file are you adding the above code?

    Thanks

    Thread Starter rodeored

    (@rodeored)

    I can’t share a link right now but obviously that code goes on whatever page is showing the calendar. The uid id is the id of the author whose events you want to show. First select all the posts for that user and tnen filter by those posts. As far as I can see this is the same as filtering by author. The disadvantage would be that its liable to be inefficient if the user has hundreds of posts but only a few upcoming events.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Filter by location’ is closed to new replies.