The Bricks Builder query loop element allows designers to display dynamic lists of posts and pages.
With proper configuration, the query loop should show exactly the content that matches the selected criteria.
But sometimes the query loop shows posts that should be excluded or hides posts that should appear.
Posts from wrong categories appear, or the order of posts is completely incorrect.
This problem makes the query loop useless for displaying curated content on the website.
Why Bricks Builder query loops show incorrect content
The query loop uses WordPress WP_Query parameters to fetch posts from the database.
If the query parameters are misconfigured, WordPress will return the wrong set of posts.
Sticky posts may appear at the top of the list even when they should not be displayed.
Custom post types may not be selected in the post type filter settings for the query.
Taxonomy terms may be misspelled or may not exist for the selected custom taxonomy.
How to check if query loop settings are correct
Edit the page in Bricks Builder and open the query loop element settings panel.
Review the post type selection to ensure the correct content types are included.
Check the taxonomy filters to verify that the correct terms are selected for filtering.
Review the order by and order settings to ensure posts sort as expected.
Check the offset and posts per page settings for correct pagination behavior.
Step by step guide to fixing Bricks Builder query loops
Follow these steps to ensure Bricks Builder query loops display the correct posts.
- Verify that the selected post types actually contain posts with content
- Check that taxonomy term names are spelled exactly correctly (case-sensitive)
- Clear all caches including plugin cache, CDN cache, and browser cache completely
- Temporarily disable sticky posts to see if they affect the query results
- Test the query with default settings (no filters) to see all posts first
- Add filters one by one and test after each to identify the problematic filter
- Check the query loop preview in the editor before publishing the page
- Use a query monitor plugin to see the actual SQL being generated by the query
- Update Bricks Builder to the latest version available from the official website
- Contact Bricks Builder support with specific details about which posts are wrong
How to debug Bricks Builder query loop issues
Install a query monitor plugin like Debug Queries or Query Monitor from the repository.
Load the page containing the query loop and check the query log in the monitor panel.
Look for the specific query that Bricks Builder generated for the query loop element.
Copy the SQL query and run it directly on the database to see what posts it returns.
Adjust the query parameters in Bricks Builder until the correct posts are returned.
Bricks Builder query loop troubleshooting reference table
Here is a reference table for diagnosing query loop problems in Bricks Builder.
| Symptom | Most likely cause | Recommended solution |
|---|---|---|
| Query loop shows all posts regardless of filters | Taxonomy filters not applied correctly | Check term spelling and taxonomy selection |
| Query loop shows no posts at all | No posts match the selected criteria | Widen filters or check that posts exist |
| Posts appear but in wrong order | Order by or order settings incorrect | Change order by to date, title, or custom field |
| Sticky posts appear when they should not | Ignore sticky posts option not enabled | Enable “Ignore sticky posts” in query settings |
| Pagination shows wrong number of pages | Posts per page or offset misconfigured | Adjust posts per page and check offset value |
For more information about Bricks Builder query loops, visit the Bricks Builder page on wpwizzy.com.
Preventing Bricks Builder query loop problems in the future
Always preview query loop results in the editor before publishing pages to the live site.
Use descriptive names for taxonomy terms to avoid spelling mistakes in query filters.
Test query loops with different filter combinations on a staging website first.
Document the query settings for complex loops for future reference and troubleshooting.
Keep Bricks Builder and all other plugins updated to their latest versions regularly.
Use custom query parameters via code when built-in filters do not provide enough control.