Forcing page to top of the list when using get_pages
I am using get_pages
to pull the children pages from a parent and listing them in a similar way to the standard WP loop for pages. This works well using the code referenced below - however.. what I would like to be able to do is to list a page I know the ID for at the top irrespective of its publish date (I am listing the pages in date order). Is this possible? Page ID of the page I want to always be listed first is #196.
Thanks
?php
$ids = array();
$pages = get_pages(child_of=.$post-ID);
if ($pages) {
foreach ($pages as $page) {
$ids[] = $page-ID;
}
}
$paged = (get_query_var(paged)) ? get_query_var(paged) : 1;
$args = array(
paged = $paged,
post__in = $ids,
posts_per_page = 100,
post_type = page
);
query_posts($args);
if (have_posts()) : while (have_posts()) : the_post(); ?
div class=feedItemWrapper wpb_animate_when_almost_visible wpb_fadeInUp fadeInUp
a href=?php the_permalink(); ? title=?php the_title(); ?
?php echo get_the_post_thumbnail( $post_id, 'full', array() ); ?
div class=feedItemContentWrapper
h3?php the_title(); ?/h3
p?php the_excerpt(); ?/p
p class=date?php echo get_the_date(); ?/p
/div
/a