Hi,
I tried that, but I get an overview of all Expertises (Pages) and CPT Cases followed by [/types]"]
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Can you please check now: hidden link
I've created the following content templates and added the view's within that related content templates:
=> hidden link
=> hidden link
And then added the content templates as given under within shortcode module:
[wpv-post-body view_template="ct-to-display-related-expertise"]
[wpv-post-body view_template="ct-to-display-related-cases"]
Can you please confirm now it works as expected.
It works, but why? 🙂 The Content Templates are not assigned to any Post types or Taxonomies.
So why does [wpv-view name="related-case" related="[types field='related-case'][/types]"] in the Elementor Template not work, but when you place the same code in a Content Template and load the CT in Elementor, it works?
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Because Elementor's shortcode module does not able to parse the nested shortcode we added like:
[wpv-view name="related-expertise" related="[types field='related-expertise'][/types]"]
The workaround is that I shared is we created the content template that holds the view:
[wpv-view name="related-expertise" related="[types field='related-expertise'][/types]"]
And added the content template shortcode within the Elementor's shortcode module:
[wpv-post-body view_template="ct-to-display-related-expertise"]
[wpv-post-body view_template="ct-to-display-related-cases"]
As we are using content template as container that holds the view, its not required to set content template to display with any post type or taxonomy.
Minesh has been EXTREMELY helpful. Thank you!