why ignore_sticky_posts in sticky post query

We all know that ignore_sticky_posts is used to exclude sticky post from your custom query. But why on codex page https://codex.wordpress.org/Sticky_Posts, they use ignore_sticky_posts in querying sticky posts?? $args = array( ‘posts_per_page’ => 1, ‘post__in’ => get_option( ‘sticky_posts’ ), ‘ignore_sticky_posts’ => 1 ); $query = new WP_Query( $args ); This is so confusing and doesn’t … Read more

Sticky Posts exceed posts per page limit

I’m using pre_get_posts to adjust the number of posts displayed on my homepage. function lifelounge_query_adjust( $query ) { if ( is_home() ) { set_query_var( ‘posts_per_page’, 12 ); return; } } add_filter( ‘pre_get_posts’, ‘lifelounge_query_adjust’ ); But I am running into a problem with sticky posts. Basically, if I have any sticky posts, the query will display … Read more