Well if anyone reads this and want to know the solution:
- Make your post sticky. If its a blog, feature is built in. For portfolio, add plugin Seamless Sticky Custom Post Types and make your porfolio item sticky.
2 Then add below to function.php so what is marked sticky will show on all pages at the top instead of just the home page because Wordpress is default only made to have sticky post show on the front page:
add_filter(‘the_posts’, ‘bump_sticky_posts_to_top’);
function bump_sticky_posts_to_top($posts) {
$stickies = array();
foreach($posts as $i => $post) {
if(is_sticky($post->ID)) {
$stickies[] = $post;
unset($posts[$i]);
}
}
return array_merge($stickies, $posts);
}