How can I always include a post/ page in the random result?
For instance, I always want to get 3 items only from my articles. But I want the result always has the article with page order
1:
$parent = $post->ID;
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$query_args = array(
'post_type' => 'page',
'posts_per_page' => 3,
'orderby' => 'rand',
'post_parent' => $parent,
'paged' => $paged
);
// create a new instance of WP_Query
$the_query = new WP_Query( $query_args );
So the result will be:
1, 2, 3, or 2, 1, 4, or 4, 2, 1
Is it possible? Does WordPress has any defaults for this?