-
AuthorPosts
-
October 19, 2013 at 4:13 pm #177897
Hi! I have the Enfold theme on this site: http://www.flylanddesigns.com
I’ve selected 2 or three posts as “Sticky” posts, that I want to always show up top. But for some reason that doesn’t seem to be happening. Is that feature incompatible with this theme? Thanks in advance for your help,
October 21, 2013 at 3:19 pm #178437Hey flylanddesigns!
Please make sure that you are using the latest version of bbPress and Enfold. You can update Enfold to version 2.4
For a quick guide on updating your theme take a look at this video on updating the Enfold theme via FTP: https://vimeo.com/channels/aviathemes/67209750Regards,
YigitOctober 31, 2013 at 7:08 pm #183080Hello!
I concur with flylanddesigns, that sticky posts aren’t sticking to the top. I have a blog posts element on a page, pulling in selected categories. I want 2 posts to stay at top. Selecting ‘sticky’ in wordpress on those posts has no effect. I am using Enfold v2.4 / WP 3.6.1.
Thanks.
November 3, 2013 at 1:45 am #183828Hey!
Are you using the Post Grid element?
Cheers!
JosueNovember 3, 2013 at 1:49 am #183829Yes, I am. It’s a blog page, but I’ve set it to display the posts in a grid.
You can view it here: http://www.flylanddesigns.com/blog
Also, scheduling posts isn’t working either.
November 4, 2013 at 2:42 pm #184246Hi!
It’s unfortunately a limitation/bug of wordpress: http://wordpress.stackexchange.com/questions/87472/ensuring-sticky-posts-are-retrieved-first-without-using-two-queries
You can try to add following code to the functions.php file of the theme
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; }
which is a slightly modified version of the workaround someone posted here: http://wordpress.stackexchange.com/questions/87472/ensuring-sticky-posts-are-retrieved-first-without-using-two-queries but it doesn’t work for me very well. Another solution would be to use a plugin like http://wordpress.org/plugins/post-types-order/ which allows you to manually sort the posts but the disadvantage is that you need to check the sort order after you published a new post.
Regards,
PeterNovember 4, 2013 at 3:12 pm #184266Nice one Peter – that worked for me!
Regards – Jeeves
-
AuthorPosts
- The topic ‘Sticky Posts not working’ is closed to new replies.