Tagged: blog element, post, posts, sticky, sticky posts
Hey,
The sticky post functionality does not work…
I have tried with the custom code from another post:
// Make “sticky posts” sticky in the blog element
add_filter(‘the_posts’, ‘bump_sticky_posts_to_top’);
function bump_sticky_posts_to_top($posts) {
foreach($posts as $i => $post) {
if(is_sticky($post->ID))
{
$stickies[] = $post;
unset($posts[$i]);
}
}
if(!empty($stickies))
return array_merge($stickies, $posts);
return $posts;
}
But, if you have a paging on the blog element, it sticks to the top of the page it’s on and not on the first page.
It would be nice, if its not only on the blog element but also on other elements that uses the posts.
Can you please fix this in the theme and not as a custom change, it should be a think that works out of the box…
Best regards,
Kristoffer
Hey kristofferm,
You can request this feature here.
If you need further assistance please let us know.
Best regards,
Victoria