• The shortcode [Event show_filters="true" selected_datetime="01-01-2025,31-12-2025"] does not filter by date, while [Event show_filters="false" selected_datetime="01-01-2025,31-12-2025"] filters correctly without issues.

    Upon reviewing the shortcode’s code, I noticed there’s an if statement that only processes the selected_datetime attribute if show_filters="true". I believe this is incorrect.

    The code is located in wp-event-manager/shortcodes/wp-event-manager-shortcodes.php, lines 690-753. If I disable the else on line 717, the selected_datetime attribute works perfectly.

Viewing 1 replies (of 1 total)
  • Plugin Author Rita Kikani

    (@kikanirita)

    Hi @perezdans , we report your issue and we will fix it if there anythings needs to improve in this.

    Thank you.

Viewing 1 replies (of 1 total)

The topic ‘Event shortcode and selected_datetime’ is closed to new replies.