• Resolved nir_r

    (@nir_r)


    Hi,

    I have found a bug when using the Event Search option as a shortcode.

    It is simple to recreate.
    In a clean page, when I am using the shortcode without any parameters, ([event_search_form]), the search box appears ok.
    When I am using the same shortcode but with the scope parameter ([event_search_form scope=”past”]), the display of the datepicker (in the advanced search fields) is corrupted.
    There is a Java script error generated – “Uncaught Missing number at position 0” in the datepicker.min.js file (the standard WP file).

    Could you please help ?

    Thanks

    https://ww.wp.xz.cn/plugins/events-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    The [event_search_form] isn’t designed to be used with attributes.

    Can you explain more about what you’re trying to do? Thanks.

    Thread Starter nir_r

    (@nir_r)

    Sure, let me explain.

    In the site, the built-in events page shows upcoming events (as configured by default, in the plugin settings, only future events are shown).
    I also wanted to have a different page to show past events so I created a standard page and inserted two shortcodes:
    [event_search_form scope=”past”]
    [events_list scope=”past” order=”DESC” limit=10 pagination=1]

    In the past events page I wanted to have the same search functionality that I have in the standard events page but to set it to search only on past events and that is why I added the scope parameter.

    Is there a better way to have two different lists of events with search capability, that one is for upcoming events and the other one is for past events ?

    Thanks much for your help and for this great plugin.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry I’m afraid that this is not possible at the moment.

    Thread Starter nir_r

    (@nir_r)

    Thanks Angelo…I will try to think of a different implementation for the events in the site…

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Bug when using the Event Search as a shortcode’ is closed to new replies.