¿How about getting the ID from de configuration?
<?php $page_for_posts = get_option( 'page_for_posts' ); ?>
As the page you are looking for now displays the posts, you are in the loop for posts, not the loop for the page.
¿How about getting the ID from de configuration?
<?php $page_for_posts = get_option( 'page_for_posts' ); ?>
As the page you are looking for now displays the posts, you are in the loop for posts, not the loop for the page.