Answers for "get post id if while have_posts in wordpress"

PHP
3

wordpress get post id

// Retrieve the ID of the current item in the WordPress Loop.
get_the_ID()
Posted by: Guest on February-19-2021
0

if post id is wordpress php

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

Code answers related to "get post id if while have_posts in wordpress"

Browse Popular Code Answers by Language