• Resolved ifingers

    (@ifingers)


    I am using shortcodes to generate lists and other content on the site. This is working as expected while I am logged in to the WordPress dashboard. However when I am not logged in the content is mostly missing.

    For example this page: http://inewforest.co.uk/hotels/

    Is showing “No Locations” under Hotels in Beaulieu and in other places on the page. However it works fine while logged in to the Dashboard.

    It is not just the hotels page too, it is almost random in nature. Some locations are being shown, but many are not.

    Any suggestions?

    https://wordpress.org/plugins/events-manager/

Viewing 15 replies - 1 through 15 (of 19 total)
  • I’m facing the same problem here. Any solution for this?

    Do you have WPML installed?

    Thread Starter ifingers

    (@ifingers)

    No, I do not have WPML installed.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    can I know what is your current EM version please? also, is this under frontend edit events page or using single events page?

    Thread Starter ifingers

    (@ifingers)

    The EM Version is: 5.5.7.1

    This is on many pages of the site where I have entered the shortcode into the text editor in WordPress.

    Thank you.

    Can you post an example of a shortcode that’s not working as expected?

    Thread Starter ifingers

    (@ifingers)

    On the hotels page I am using this

    [locations_list type="hotel" town="Beaulieu" limit="0" ]
    <div><span class="alignleft" style="padding-right: 20px;"><a href="#_LOCATIONURL">#_LOCATIONIMAGE{150,150}</a></span>
    <h3><a title="#_LOCATIONNAME" href="#_LOCATIONURL" rel="bookmark">#_LOCATIONNAME</a></h3>
    #_LOCATIONEXCERPT
    
    #_LOCATIONADDRESS, #_LOCATIONTOWN, #_LOCATIONPOSTCODE
    
    </div>
    [/locations_list]

    On the visit page I am using this:
    <ul>[locations_list limit="20" type="tourist-attraction" ]<li><a href="#_LOCATIONURL" title="#_LOCATIONNAME" rel="bookmark" itemprop="url">#_LOCATIONNAME</a></li>[/locations_list]</ul>

    In both cases, when logged in everything works as expected. When logged out only some of the locations are being displayed. The visit page for example is showing just 2 attractions when not logged in. When logged in there are 16 locations showing.

    Sorry, it’s not possible to filter the shortcode with a type attribute.

    http://wp-events-plugin.com/documentation/shortcodes/

    Thread Starter ifingers

    (@ifingers)

    ‘type’ is a custom taxonomy, I created for the location CPT used by EM.

    That’s a shame it’s not possible to filter by a custom taxonomy. Strange it works perfectly while logged in.

    Thank you

    Plugin Support angelo_nwl

    (@angelo_nwl)

    you need custom coding to make this work – http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/ (replacing events with location) also, you might need wp_query to make this work

    Thread Starter ifingers

    (@ifingers)

    Sure, it looks like I need to fire up my code editor… 😉

    Thanks for the help caimin_nwl and angelo!

    Hi I’m also seeing this but without any kind of filtering.

    The shortcode I’m using is [locations_map width=”100%” height=”500px”] and you can see the result at http://www.clerkenwelldesignquarter.co.uk/map/

    When logged in, all the locations appear. When logged out, only the first created location appears.

    Any thoughts?

    Which version of Events Manager do you have?

    Hi it’s Events Manager Version 5.5.7.1 running on WordPress 4.2.2.

    The only other plugins running are Jetpack Version 3.5.3 and Content Views Version 1.6.2.1 though I’d be surprised if they’re making a difference.

    I’m seeing the same behaviour consistently across browsers and on mobile.

    Thread Starter ifingers

    (@ifingers)

    I believe I have worked out that the location shortcode will only work if the location has had or is having an event.

    For example:
    [locations_map post_id=”6405,6416,6435,6440,6461″ limit=”0″]

    Only displays locations which have/or will be having an event. So this is nothing to do with my location custom taxonomy. Again, all locations are shown while logged in. But when not logged in just the locations which have had or are to have an event are displayed.

    Any solutions for this, aside from creating events at these locations?

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Missing locations when not logged into WordPress’ is closed to new replies.