You have custom filter in a plugin or in your theme that is messing with WP_Query
. Your issue is that something is setting is_home
to false
. This is not default behavior, by default, is_home
should return true
in any custom instance of WP_Query
.
is_home
is one of the contributing factors which is responsible for setting up sticky posts at the top in a query, and if its value is false
, you will not get sticky posts moved to the front.
You should deactivate your plugins one by one and check which one is causing the issue. You should also test your code on a bundled theme to eliminate your theme as a possible culprit
Related Posts:
- Trying to list out child pages with WP_Query
- Query sticky posts with thumbnails
- Show Sticky Post at the top but do not show again in the loop?
- Create a page template for “top rated posts” but show full content and not just a list
- inserting content of 1 Post to in another with a template hierarchy
- How to remove only the latest sticky post from the loop
- Pagination for custom loop on custom page template is not displaying anything
- How to create Page templates for showing Blog posts in different layouts?
- How to separate two columns from one content on a page template?
- How to use custom page for all posts with custom url, call another directory?
- How can I have sticky posts while ALSO showing posts from a specific category using one WP_Query?
- Pagination inside the blog page not working
- WP_Query causing links to not work
- Multiple loops on index page with sticky post and pagination
- First post outside of loop, homepage only?
- How can I display sticky posts at first in wp_query?
- Can I force WP_Query to return no results?
- Resetting post data to previous loop in nested loops
- Some doubts about how the main query and the custom query works in this custom theme?
- How to display page content in a page template?
- Get post count of current loop when using multiple queries on one page
- why ignore_sticky_posts in sticky post query
- Multiple WP_Query loops with Pagination
- Using a custom WP_Query with get_template_part loop
- WP_Query vs get_posts
- Loop within a loop?
- WP_Query and next_posts_link
- Show posts without term
- Usage of the new “posts_clauses” filter in WordPress 3.1?
- Display products from specific category in shop page
- How to list some posts first in the loop based on post id
- WP_Query: Why is sticky post not first item in loop?
- Pagination returns 404 after page 20
- Make loop display posts by alphabetical order
- Query *only* sticky posts
- WP_Query: query posts by ids from array?
- Use WP_Query with have_posts()?
- get custom post type by tag
- How to get order of posts?
- Order posts by ID in the given order
- Sticky Posts & Posts Per Page [closed]
- Too slow when using both ‘tax_query’ and ‘meta_query’ both in WP_Query
- get_template_part in for loop
- Get array of posts from the current archive page loop
- pre_get_posts with get_posts
- How-to exclude terms from the main query the most performant way?
- Pagination with WP_Query is buggy – working for some pages, but not the others
- Get the number of posts from the current page results
- Executing Queries in tag.php
- Display posts the match taxonomy term linked from wp_list_categoies?
- How can I save an array from a random post sequence for later use?
- How to place a loop within another loop?
- WordPress Custom Query to show posts from last x years
- How to order posts tag by tag?
- Query Custom Meta Value with Increment
- “pre_get_posts” firing on every query
- Show two random posts from custom post type
- Add the “active” class only to the first loop item in a WordPress query [closed]
- Loop through all tags & output posts in alphabetical list
- Pagination with 5 posts per page
- Identify which loop you are hooking into; primary or secondary?
- In loop: posts have thumbnail AND other variables
- Group posts by custom field
- How to order category.php loop by ‘meta_value’?
- Pagination/infinite scroll with WP_Query and multiple loops
- Merging a complex query with post_rewind and splitting posts into two columns
- Sort posts by custom taxonomy name
- Add inline HTML to posts published within last 24hrs
- Move posts to top of WP_Query if in certain Taxonomy?
- wp_query for the first sticky, then display the rest of the posts excluding the first sticky
- Loop inside the loop
- Pagination Not working on Home Page with 2 Query
- meta_query not working properly
- Single page theme
- Ajax Infinite Scroll In Custom WP_Query Loop Not Working
- Single page theme that uses pages for the content
- All sticky posts are returned in custom query
- Display different number of posts from one category on the different pages
- Looping through tabular data
- Exclude post on loop by multiple meta key value
- Pagination not working Search posts
- How to change a custom query into a standard loop?
- Transient pagination not working properly
- Show default content if custom WP_Query has no posts
- get_posts() seemingly ignoring post_type
- cloning a WP_Query
- Injecting content with $wp_query->current_post restarts from zero on paged pages. How to inject content after X posts, regardless of pagination?
- How to query ‘posts_per_page’ to display a different blog posts index template?
- Front End Sorting Questions
- Display featured products through custom loop in WooCommerce 3 [closed]
- Woocommerce custom loop to show all the products [closed]
- Sort by meta key on archive page
- Exclude first 5 posts of specific categories in the main loop
- How to bring specific post to front of wordpress loop?
- meta_query on a date range using an array of values
- How to display 3 different loops in 3 columns on homepage
- How is WP_Query connected to WP_Post in The Loop?
- What are the differences between “Latest Posts” and “Static Page”?
- Splitting the main query in multiple loops with query_posts and/or pre_get_posts?
- Can certain (site-crashing) limitations on WP_Query in shortcode be overcome?