Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    have you tried to use search attribute like eventful or eventless?

    eg. [locations_map eventful=1]

    https://wp-events-plugin.com/documentation/event-search-attributes/

    Thread Starter iheartwine

    (@iheartwine)

    Angelo, is there sth like

    [locations_map eventful=1 group=”my” scope=”future”]
    ?

    I want to present on a map only locations that have events from my group.

    Yes, there is – exactly as you’ve written it ??

    Thread Starter iheartwine

    (@iheartwine)

    It works 50:50, because I see places that doesn’t contain any events from my group (they have, but from other groups). I wanted to display only my groups future event places

    Do you mean “empty” locations?

    Thread Starter iheartwine

    (@iheartwine)

    yes, places with no event for this particular group that i’m in (but overall they have some events), so they shouldn’t be placed on a map

    Plugin Support angelo_nwl

    (@angelo_nwl)

    hi,

    not sure if adding group=”my” will work location map shortcode but maybe you can use placeholder #_LOCATIONNEXTEVENTS and then you can modify this and add group=my

    eg.

    $events = EM_Events::get( array('location'=>$EM_Location->location_id, 'scope'=>'future', 'limit'=>3, 'group'='my') );

    As for where to paste this : https://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/

    Thread Starter iheartwine

    (@iheartwine)

    Angelo, but I don’t want to display any location marker on a map, if it doesn’t have any events from my group.

    Hiya,

    I just want to make sure I’m understanding your needs correctly first.

    Are you using BuddyPress? I assume so because you refer to groups.

    And it sounds like you have a list of events for that group, with a map of locations at the top. You want the map to only show locations where there is an event.

    In that case the shortcode you pasted above should work perfectly:
    [locations_map eventful=1 group="my" scope="future"]

    Given this appears not to be working 100% for you, can you provide a link where we can see this in action to check what exactly is happening?

    Thanks,
    Phil

    Thread Starter iheartwine

    (@iheartwine)

    Thank you Phil, that is exactly what I need.

    But when I run this shortcode on a home page, it displays also other locations (that have events in other groups) saying “No events in this location”

    Does the shortcode work ok if you use it on another page?

    Thread Starter iheartwine

    (@iheartwine)

    no, i tried putting this shortcode everywhere (including group homepage, and group/events subpage) with no effect ??

    Can you provide a link?

    Thread Starter iheartwine

    (@iheartwine)

    only priv, could you give me your email?

    * * *
    I have uploaded fresh files from the plugin and still the same. did you tried on your installations? maybe it is just how it works? ??

    I’m pretty sure it should the way you want it to. I’ll ask Marcus to take a look at this thread as soon as he can.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Conditional tag for places map – no locations’ is closed to new replies.