Currently I am working for a site which runs on WordPress, and using twenty thirteen theme which already has a sticky post function built in and working reasonably well.
But I do not like how a sticky post is always displayed on absolute top. I would rather be able to display the latest one or two or three posts, then the featured/sticky posts. How can I do this?
You have to change the order in
$wp_query->posts
. Compare it to the values fromget_option( 'sticky_posts' )
.Example:
Add this function to your
functions.php
and call it before the loop like this: