I found this fantastic snippet from Nilay:
// Run code only for Single post page if ( is_single() && 'post' == get_post_type() ) { } //if it's not a specific post-type if ( is_single() && 'portfolio' != get_post_type() ) { }
source https://developer.wordpress.org/reference/functions/is_single/
Very useful
Enter the destination URL
Or link to existing content