WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] using shortcode on main 'Events' page (4 posts)

  1. _prd_
    Member
    Posted 1 year ago #

    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/

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    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.

  3. _prd_
    Member
    Posted 1 year ago #

    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.

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.