Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Position date bottom of column (cards) Reply To: Position date bottom of column (cards)

#19656
elvin
Moderator

Hi,

You can try this instead.

add_filter( 'wpsp_date_output', function( $output, $settings, $time_string ) {
    if ( 78 === (int) $settings['list_id'] ) {
        return sprintf(
            '<span class="wp-show-posts-posted-on wp-show-posts-meta">
                %s
            </span>',
            $time_string
        );
    }

    return $output;
}, 10, 3 );

Had to fix the condition. Just replace the 78 with your list ID.

I’ve tested this on my sandbox site. Let us know if it works for you.