As of Ajax Load More 2.14.1 sticky posts can be included at the top of post listing by simply including sticky_posts=”true” in a shortcode.
This snippet will display all sticky posts by passing post IDs to the post__in shortcode parameter.
This snippet passes sticky post IDs to the post__not_in shortcode parameter.
This snippet uses the alm_query_args() filter to globally remove sticky posts from all Ajax Load More listings.
« Back to Code Samples