• Hi,
    I’m looking for a way to output only events that have location (for my settings it’s the same as events with map). I found the hack with google maps function, but I still have tables when I show events without location so it won`t work for me.

    I`m looking for something like
    <?php query_events('has_location=true'); ?>

    Is it possible with EM?
    Thanks in advance

    http://wordpress.org/extend/plugins/events-manager/

Viewing 6 replies - 1 through 6 (of 6 total)
  • hi

    you can use conditional placeholders like {has_location} in your Settings > Formats/Layouts > Events Format

    http://wp-events-plugin.com/documentation/conditional-placeholders/

    Thread Starter Trimek

    (@trimek)

    Yes, I did, but when I set limit to let’s say 5 and none of this 5 events will have location I will get empty list as {has_location} just hides events without location.

    What I would like to achive is listing only next 5 events with location.

    you can also use {no_location}-content-{/no_location}?

    Thread Starter Trimek

    (@trimek)

    As I said, I managed to find solution with {has_events}, but it requires bigger scope for small amount (5) events. I just wonder if this condition proceeds after query (like filtering results) or it`s and condition for general query to DB?

    In my case I would have to query limit 100 events to {has_location} show 5 what makes no sense.

    hi,

    thx for the info. however can I ask whether if you are trying to do it in settings > formats/layouts or in a page using a shortcodes? also, can I ask where did you find {has_events}?

    thx

    Thread Starter Trimek

    (@trimek)

    Thx for activity in this topic agelonwl. Sorry, {has_events} meant to be {has_location}.

    I was trying to do this in widget settings (5 events, future, {has_location} for single output), but if it`s possible via template code or shortcodes it would be lovely.

    I think I will make a small workaround with Category. I will make “Localization” category and query events from this Category. Should work like a charm.

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

The topic ‘[Plugin: Events Manager] Query events with location/map up’ is closed to new replies.