We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Display Date of Event Reply To: Display Date of Event


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
        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.