Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Selectively disable title link Reply To: Selectively disable title link

#12644
Tom
Keymaster

Hi there,

Just committed this change: https://github.com/tomusborne/wp-show-posts/commit/5195d874dc9c71e61e2673f6f32d50ad7835700b

You can add that to your current version, then you can do this:

add_filter( 'wpsp_title_href', function( $href, $settings ) {
    if ( 123 === $settings['list_id'] ) {
        $field = get_post_meta( get_the_ID(), 'your_custom_field', true );

        if ( $field ) {
            $href = $field;
        }
    }

    return $href;
}, 10, 2 );