This post was last updated on January 15th, 2017 at 06:04 pm
In WordPress we’re not always working inside the WordPress loop. Working inside the loop, we use the template tag the_ID
, which easily get current page ID. But while working outside the loop then getting current page ID is