<?php
global $wp_query;
$current_page_id = $wp_query->post->ID;
?>

Advertisements