Event shortcode and selected_datetime
-
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
ifstatement that only processes theselected_datetimeattribute ifshow_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 theelseon line 717, theselected_datetimeattribute works perfectly.
The topic ‘Event shortcode and selected_datetime’ is closed to new replies.