SOLVED: Query Loop displays wrong posts in backend

Bricks Version: 1.6
Browser: Firefox Developer Edition
OS: macOS

I noticed that some query loop settings don’t apply to the loop in the backend but work perfectly fine on the frontend.

The settings that don’t work for me (in the backend):

  • exclude current post
  • child of: {post_id}
  • sort by: post include order (shows wrong order in backend)

Example for “exclude current post”:
Backend:

Frontend:

Thank you for your help!

Hi Simone,
Thanks so much for your report!

Unfortunately, I cannot reproduce any of the issues.
Assuming you are editing a single post template for your “Werkstätten” posts:

Did you set anything in the “populate content” settings of the template? If not, that’s probably the reason why it isn’t working as expected. If you have set something there: are you sure that the post meets the criteria (e.g. that it has child posts)?

Best regards,
timmse

Hi timmse

Thank you for your feedback.
Actually I’m not editing a template of the single post, but the single post itself directly in Bricks, because they all look a bit different.

I did some more testing and found that child of: {post_id} does not work while e.g. child of: 431 (the ID of the post) works fine in the backend. Also excluding a specific post works fine but the option “exclude current post” does not.
So I’m assuming these dynamic options are only for templates (when you select content to populate it) but not for single post / pages?

Thank you and kind regards,
Simone

Hey Simone,
Editing the post directly is the crucial hint :slight_smile:

I can confirm the issues with child_of {post_id} and exclude current post and added it to the bug tracker.

Best regards,
timmse

Great! Thank you very much! :slight_smile:

Hi Simone,

We’ve fixed this issue in Bricks 1.8 beta, now available as a manual download in your account.

Please let us know if you are still experiencing issues.

As with any beta release, please do not use it on any production/live website. It is only meant for testing in a local/staging environment.

Best regards,

timmse

1 Like

Got similar problems with parent setting for query loop (also not working in v1.8): Query loop: infinite scrolling is loading wrong content if parent is set with dynamic data - #2 by neofix

Thank you very much!