shortcodes are duplicating page content, map shortcode no longer showing

WordPress Event Management, Calendars & Registration Forums Report A Bug shortcodes are duplicating page content, map shortcode no longer showing

This topic contains 9 replies, has 2 voices, and was last updated by  Samantha Park 9 years, 4 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #3600

    Hi Stephen,

    I was using the event list shortcodes on two pages and the google maps shortcode on another. They were all working fine. After updating both the plug-in and the theme, the google maps shortcode stopped working altogether and the pages with the event list shortcode started duplicating content and displaying an incorrectly-formatted list with huge spaces between entries. As only the pages with the eo_events shortcodes are being duplicated (“sprachkurse” and “events”), I assume the issue is with the plug-in, possibly incompatibility with something else on the site (WPML for example?) Any help would be greatly appreciated.

    Thanks, Sam

    Samantha Park
    #3609

    Hi Sam,

    I’ve not been able to replicate this bug. Does it persist if you deactivate all other plug-ins and switch to TwentyEleven/TwentyTwelve theme?

    Regarding the Google maps not appearing do you have any other Google map related plug-ins activated ( some of these plug-ins ‘turn off’ the Google maps feature of other plug-ins – due to changes made in 1.7 this now includes Event Organiser’s google maps).

    Stephen Harris
    #3667

    Deactivating WPML seems to have solved the problem. Unfortunately this is not an option, as the site needs to be available in more than one language. Could it be a simple setting in WPML that is causing problems? Or is the plug-in just not compatible with WPML?

    Samantha Park
    #3668

    Just to clarify, the problem that was solved was the page duplication, the strange formatting persists.

    Please help!

    Samantha Park
    #4072

    Please help! The eo_events shortcode is duplicating content whenever WPML is activated and I need both!

    Samantha Park
    #4488

    Hi Samantha,

    Apologies for not getting back to you sooner. Is all content on the page (i.e. text along with the shortcode) being duplicated, or just the shortocode?

    This may seem odd, but have you tried using the shortcode with template tags, e.g

    [eo_events] %event_title% [/eo_events]
    

    Does the duplication persist?

    Stephen Harris
    #4602

    Yes, all content is being duplicated, but only on the pages where I have used shortcodes. Using template tags improves the formatting but doesn’t stop the duplication unfortunately. And for some reason the date is misbehaving.

    Samantha Park
    #4771

    Hi,

    I’ve stumbled across the same problem of duplicated content with wpml when using the shortcode in the editor and directly in the template.

    I found that the problem can be resolved by removing the call to wp_reset_query() on line 208 in classes/class-eo-event-list-widget.php

    It seems like a good workaround for now.

    Jonathan Berger
    #4776

    Ah that should be wp_reset_postdata() instead! Good catch!

    Stephen Harris
    #5364

    Problem solved. Cheers guys!

    Samantha Park
Viewing 10 posts - 1 through 10 (of 10 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.