Mix CPT and Taxonomies
-
Hi,
we’re very happy to use the power of Pods in our Elementor websites and enjoy discover the many functionalities.
I am now working on a website where I need to select content for a CPT according to a taxonomy. It might sounds weird but I have CPT (because I need it for other reasons) for Airplane Companies (company A, company B) called menu with custom fields and a taxonomy for companies (company A, company B) also with custom fields called company and the field name is called nom_compagnie.
I need to show on the page for Company A posts that use the taxonomy term related to the company A.I’ve also created a relationship between the CPT and the taxonomy.
I’ve read the documentation and several posts on the forum but couldn’t find a working solution to create my shortcode.
I need it to be dynamical so according to the Company selected from menu, the content is specific to this company.
This is a selection (my best tries I guess) that I tried without success
[pods name=”menu” where=”taxonomy_name.slug = ‘compagnie’ and field.name = ‘nom_compagnie’ “][/pods]
[pods name=”menu” where=”taxonomy_name.slug = ‘compagnie’ and ‘term_id’ = 8463 “]{@post_title}[/pods]Does something lack? like the field name for the company CPT? How can I match them together? Can I use “and” operator and how?
thanks for your help
Guillaume
The page I need help with: [log in to see the link]
- The topic ‘Mix CPT and Taxonomies’ is closed to new replies.