SOLVED: {query_results_count:bricksid} not working on Related Posts widget

Browser: Chrome 116
OS: macOS
URL: Link to a page that illustrates this issue

I’ve been trying to troubleshoot why using the new 1.9.1 display condition {query_results_count:bricksid} on a Related Posts element is not working for me. I’ve carefully copied the 6-character ID of the Related Posts element and used it on its parent Block condition, and set condition to >0. Although there are posts (which I can clearly see in the editor and on the front end when no condition is set), it still hides the block.

To test, I created another block that simply has a post_title element inside, and set this block to have the query, then used its ID in a parent container. When the query is on a block, the conditional display works as expected. When the query is on a Related Posts element, it does not.

I am not sure if this is a Bug or if it is the expected behavior. Please advise.

Also, it seems to me we need a way to distinguish between Published, Draft, Pending, etc in these post query loops. How to exclude drafts from the loop? (sorry, different but somewhat related question,should probably its own ticket).

Hi,
Thanks so much for your report!

Unfortunately, I cannot reproduce the issue. Would you be so kind as to send temporary login credentials and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase?

Best regards,
timmse

I contacted Bricks support and they confirmed this is a bug, and suggested using a custom query loop as an alternative/workaround for the time being.

Ah, ok. I just saw that Jenn has recorded your ticket. Normally, reporting your problem in the forum or via ticket is enough. Both in parallel is not necessary :slight_smile:

yes this was a duplicate, my mistake. i’m new here and still learning the proper channels for support.

1 Like

Hi,
We’ve fixed this issue in Bricks 1.9.3, now available as a one-click update in your WordPress Dashboard.

Changelog: Changelog – Bricks

Please let us know if you are still experiencing issues.

Best regards,
timmse