- This topic has 1 reply, 2 voices, and was last updated 7 years, 3 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Show all sticky posts first with infinite scroll
Take a look at this page. http://powerschoolnew.staging.wpengine.com/resources/?post_types=whitepaper
I have 7 sticky posts in this post type. You can find them in the HTML with class=”resource-block featured”. When I first load the URL above, only 3 of the sticky posts appear in the first set of results (I wrap them in a carousel using jQuery). As I scroll, the other sticky posts appear(they will be 50% wide. I then move them to the top with jQuery.
Why aren’t my sticky posts ALL appearing first before all non-sticky posts? I tried deliberately setting ignore_sticky_posts to false using sf_edit_query_args but this made no difference.
Thanks for any help you can offer.
Before we dig any further in to any issues raised, the first thing to do, before we try anything else, is to see if your hosting (WP Engine) is the issue (I do not think that it is, but best to make sure).
There is a setting to override a ‘feature’ of WP Engine hosting, that truncates long SQL queries (which ours are). Edit the site wp-config.php file and add this at the top, after line 1 (on a new line 2):
define('WPE_GOVERNOR', false);
PLEASE DO NOT COPY code from the email you receive for this reply, as email systems sometimes alter the quote marks and encode some characters; instead copy it from the actual forum page.
(also see here for another related support note about this – https://support.searchandfilter.com/forums/topic/killed-query-errors-in-log/#post-64826)