I am trying to: load a CPT Relationship Content Template within an Elementor Loop Grid. It seems to be working in the backend, but not the front end. Please see images uploaded.
Link to a page where the issue can be seen: hidden link
I expected to see: A list of related Clients and a list of related Agencies for each project.
Then I've created the following view:
- To display related project Agencies:
=> hidden link
Where:
- I've added the Query Filter for post relataionship to filter the view result with view's shortcode attribute:
Filter by post relationship or repeatable fields group owner
Select posts in a Projects Agencies relationship that are related to the Post with ID set by the shortcode attribute relatedagency.
eg. [wpv-view name="view-name" relatedagency="123"]
- To display related project Clients:
=> hidden link
Where:
- I've added the Query Filter for post relataionship to filter the view result with view's shortcode attribute:
Filter by post relationship or repeatable fields group owner
Select posts in a Projects Clients relationship that are related to the Post with ID set by the shortcode attribute relatedclient.
eg. [wpv-view name="view-name" relatedclient="123"]
I'm only displaying post title with link with both of the above view, you can adjust the view's loop output as required for both of the above views.
Then with your Elementor's template:
- hidden link
I've added the "Text" Module and added both of the above view's as given under: