How Do I get the ID of latest 10 pages from a certain category in my wordpress blog. Please suggest me a relevant function to get that in a form f array or something that could give me the ID's of latest 10 pages of my blog.
Try the code below. This is the Reference:
<?php $args = array( 'post_type' => 'page', 'posts_per_page' => 10, 'category_name' => 'mycat', 'fields' => 'ids' ); $data = get_posts($args); print_r($data);