Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Apply action to one list only Reply To: Apply action to one list only

#19093
Tom
Keymaster

Hi there,

Give this a shot:

add_action( 'wpsp_before_title', function( $settings ) {
    if ( 123 === $settings['list_id'] ) {
        $image = get_field('logotipo');
        $permalink = get_permalink();

        if ( isset( $image ) && '' !== $image ) {
            echo '<div class="av-logotipo"><a href="' . $permalink . '"><img src="' . $image . '"></a></div>';
        }
    }
} );

Let me know 🙂