How to integrate JetEngine Relations with Bricks Query loop

Hi! I’m having trouble loading a query loop in a CPT single page, with a list of related posts from other CPT, using JetEngine relations.

The scenario is the following:

  • JetEngine CPT “Artist”
  • JetEngine CPT “Album”
  • JetEngine Relationship one-to-many: Artist(parent)-Album(child)
  • “Artist” Bricks template (single) → here I have the query loop (type:posts, post type:“Album”)

The problems is that it’s loading all “album” posts, but I want it to only load the ones related to the current “artist”.

I installed Bricks version 1.5 and I saw in the changelog of July 2, 2022 that it was implemented: “Query Loop: Integration for Meta Box Relationships & JetEngine Relations” but I can’t found the way.

Thank you!

I finally found it! I was looking for it in the options of the “posts” query, but it has to be set directly as the type of the query.
bricks-jetengine-relations

It makes sense, but coming from Elementor my logic was different :confused:

UPDATE/SOLVED: A very easy solution, I just needed to use {post_title:link} instead of just {post_title}. Only the latter is listed in the GUI. Here is the list of supported dynamic data filters: Dynamic Data – Bricks Academy


Thanks for sharing this, I have a very similar setup. I now get the title of my JetEngine relations CPT. That’s great. But I also need to link back to that related post, but I can’t get that to work (from clicking the title).

Did you manage to do that or do you perhaps have a meta-field for the related post URL? In Elementor it worked without another meta-field. I would like to avoid that so that the client don’t need to also input the URL, just pick the related director (in this case).

If you use JetEngine, like the below post: