We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support custom link or none? Reply To: custom link or none?


There’s a filter you can use: wpsp_image_href

add_filter( 'wpsp_image_href','tu_change_wpsp_image_href' );
function tu_change_wpsp_image_href( $url ) {
    $custom_url = get_post_meta( get_the_ID(), 'my_custom_field_url', true );
    if ( is_page( 'your-page-slug' ) && '' !== $custom_url ) {
        return $custom_url;

    return $url;

That assumes you have a custom field called “my_custom_field_url” in your post.

Let me know if you need more info 🙂