// Retrieve the ID of the current item in the WordPress Loop. get_the_ID()
echo get_the_ID();
$page_id = get_queried_object_id();