home.php file I have only this code:
<?php global $post; print_r($post->ID); die(); ?>
This is printing the ID of the latest blog post, but what I want is to get the ID of the current page (the page I set as the Posts Page in Settings). It seems that I am already in "The Loop". How can I get the global
$post object for the current page rather than the first post in the loop?