Home › Forums › Pro Support › Dsiplay secondary title › Reply To: Dsiplay secondary title
September 23, 2019 at 4:05 pm
#11247
Keymaster
Definitely, try this:
add_action( 'wpsp_after_title', function( $settings ) {
$lists = array(
'123',
'456',
'789',
);
if ( in_array( $settings['list_id'], $lists ) && function_exists( 'get_secondary_title' ) ) {
echo '<div class="your-class-here">' . get_secondary_title() . '</div>';
}
} );
Then just add to the $lists array with the lists you want to target.