894How to get Parent ID from a Post Page
if ($wp_query->is_posts_page) {
$id = $wp_query->queried_object->ID;
}
if ($wp_query->is_posts_page) {
$id = $wp_query->queried_object->ID;
}
...$nr // number of posts
$args = array( 'posts_per_page' => $nr ? $nr : get_option('posts_per_page'), 'paged' => get_query_var('paged', 1), 'post_type' => 'post', ... );
$wp_query = new WP_Query($args);
while ($wp_query->have_posts()) : $wp_query->the_post(); // display endwhile;
// getPagination()