Home › Forums › Pro Support › Excerpt as title › Reply To: Excerpt as title
June 24, 2020 at 3:07 pm
#16897
Keymaster
You’d do this:
add_action( 'wpsp_after_content', function( $settings ) {
$custom_field = get_post_meta( get_the_ID(), 'wpsp_title2', true );
if ( $custom_field && 32293 === $settings['list_id'] ) {
echo '<h2>';
echo $custom_field;
echo '</h2>';
}
} );