Black Friday sale! Get 25% off WPSP Pro! Discount automatically applied at checkout.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Dsiplay secondary title Reply To: Dsiplay secondary title

#11247
Tom
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.