Home › Forums › Pro Support › Display Date of Event › Reply To: Display Date of Event
August 14, 2019 at 5:08 pm
#10775
Keymaster
I’m not 100% sure it will work, but you could try this:
add_filter( 'wpsp_date_output', function( $output ) {
return sprintf(
'<span class="wp-show-posts-posted-on wp-show-posts-meta">
%1$s %2$s
</span>',
do_shortcode( '[gd_post_badge key="event_dates" condition="is_not_empty" badge="%%event_start_date%%" bg_color="#ffffff" txt_color="#1339f0" alignment="center"]' ),
do_shortcode( '[gd_post_badge key="event_dates" condition="is_not_empty" badge="%%event_end_date%%" bg_color="#ffffff" txt_color="#1339f0" alignment="center"]' );
);
} );
You’ll also need to add the snippet they provided.