Answers for "get content type of current page in wordpress"

PHP
5

wordpres get_posttype

if ( get_post_type( get_the_ID() ) == 'slug_post_type' ) {
    //if is true
}
Posted by: Guest on June-17-2020

Code answers related to "get content type of current page in wordpress"

Browse Popular Code Answers by Language