Answers for "wordpress check if post id exsits in database"

PHP
1

check if post id exists wordpress

post_exists(get_the_title($postID)); //returns $postID or 0
Posted by: Guest on June-20-2020
0

if post id is wordpress php

if( is_single( 2578 ) ) {
    /* ... */
} else {
    /* ... */
}
Posted by: Guest on February-24-2021

Browse Popular Code Answers by Language