Answers for "wordpress check is single post wordpress"

0

is_single

// 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() ) {
   
}
Posted by: Guest on November-25-2020

Code answers related to "wordpress check is single post wordpress"

Browse Popular Code Answers by Language