• Resolved impulsewebdesign

    (@impulsewebdesign)


    Unfortunately since one of the later versions of EM, the locations widget does not show all locations anymore. This has to do with the option to filter for events so that a location is required to have at least one event for it to show up. It would be great if another option was added which allows locations to be shown regardless if it has any events.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • To show a list of locations regardless of whether they have events, use the [locations_list] shortcode. The formatting of that list can be set under Events > Settings > Formatting > Locations.

    Thread Starter impulsewebdesign

    (@impulsewebdesign)

    Thanks for the fast reply. Unfortunately this does not work, the locations are also missing on the locations page and when using the shortcode. So only the locations that have events are being shown in the widget, shortcode and on the locations page.

    Also, changing the formatting in the settings not only affects the format of the shortciode, but also of the location page. This is undesired since the widget in the footer shows only a short list of location names where the locations page gives more information.

    Thread Starter impulsewebdesign

    (@impulsewebdesign)

    I believe this has to do with $event_optional_join and the query that gets build at line 149 from classes/em-locations.php, thus locations are only selected if there is an event related to it. This could be a logical decision on how the plugin should work, but then there should also be added an option to show all locations (regardless of them having any events or not) IMHO.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    just to confirm, can I know which EM version is this please?

    Thread Starter impulsewebdesign

    (@impulsewebdesign)

    Hello Angelo, thanks for your reply. The EM version is the most current one: 5.7.3.3.

    The [locations_list] shortcode is working fine for – and in the way you want it to – when using version 5.7.3.3.

    It’s possible this is a conflict caused by your theme or another plugin. To check if it is, can you test with all other plugins deactivated and while running the default WordPress theme?

    Thread Starter impulsewebdesign

    (@impulsewebdesign)

    Unfortunately this still does not solve the problem, using twenty sixteen and no other plugins enabled, the widget as well as the shortcode display only 4 out of 7 locations: the locations that do have any events related to it.

    I will try a clean install to test.

    Widget screenshot
    Shortcode screenshot

    Thread Starter impulsewebdesign

    (@impulsewebdesign)

    Indeed it does work as intended and as i wish on a clean installed WP with twenty seventeen theme. I will try reinstalling EM on the first website.

    Thread Starter impulsewebdesign

    (@impulsewebdesign)

    Reinstalling EM v5.7.3 did solve this issue, as well as the issue with Divi from the other thread. However updating to 5.7.3.3 again caused the problem to reappear.

    I am convinced this has to do with changes in these last versions. After I replaced /classes/em-locations.php with the older 5.7.3 version the widget worked properly again.

    Do you have any custom code running relating to Events Manager?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Locations widget not showing all locations’ is closed to new replies.