WordPress.org

Support

Support » Plugins and Hacks » [Resolved] using shortcode on main 'Events' page

[Resolved] using shortcode on main 'Events' page

  • This is not a big deal, just a bug report…

    Events Manager 5.3.2
    WPML 2.6.2
    (note I’m not using the Events Manager and WPML Compatability plugin)

    Site runs three languages, but only requires one version of the Events list in the default language (ie Events are not translated).

    I like to place a short message to visitors above the events list.

    When I use CONTENTS on my main Events page in the default language, everything displays correctly. To place a copy of the eventslist on the equivalent page in another language, I use a shortcode like this
    [events_list scope=”future” limit=”10″]. This also works as expected.

    For consistency’s sake I tried replacing CONTENTS with the shortcode on the Events page in the default language. This caused my message
    above the shortcode to disappear when viewed on the frontend. It’s not just squished by CSS or anything, it doesn’t even appear in the HTML. The rest of the page layout appears fine.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marcus

    @netweblogic

    that’s because CONTENTS is replaced by EM with the event info, if you remove CONTENTS the whole page is overwritten, so it’s not a bug, it’s expected behaviour.

    I’m not suggesting the behavior when using CONTENTS in lieu of the [shortcode] is buggy.

    The problem occurs when the opposite is done. Using [shortcode] instead of CONTENTS on the events page in WPML default language interferes with other text content on the page.

    Plugin Author Marcus

    @netweblogic

    yes, but if you assign that page as an events page, it doesn’t matter what you put there, if CONTENTS doesn’t exist, the whole page content is overwritten.

    if you use it on a page not assigned as events, it should work as expected.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] using shortcode on main 'Events' page’ is closed to new replies.