Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Display List Title or Category? Reply To: Display List Title or Category?

#12765
Tom
Keymaster

Hi Callista,

I wonder if something like this would work?:

add_action( 'wpsp_before_header', function( $settings ) {
    // Lists we're targeting, replace with actual list IDs.
    $lists = array(
        '123',
        '456',
        '789'
    );

    if ( in_array( $settings['list_id'], $lists ) {
        echo '<div class="list-title">' . get_the_title( $settings['list_id'] ) . '</div>';
    }
} );

Let me know 🙂