ACF and CPTs
-
Hi Eliot
We have created multiple custom post types using cpt-onomies. For the primary CPT we used the ACF Relationship field to link to the secondary CPT’s.So we have for example:
Plant Profile (the primary CPT with ACF’s linking to secondary CPT’s
– Plant Part Used
– Plant Constituents
– Animal DiseasesOn a Plant Profile posts I can use the basic Related shortcode to pull in the fields I want.
[related field_name] [field title] [field thumbnail] [/related]
But on the secondary CPT’s (with no ACF’s) can I list all the primary CPTs that were related to it?
So on a Plant Part post titled ROOTS is there a shortcode to run through all the Plant Profile posts and list those that had roots selected?
Hope that makes sense ??
Thank you
Jimmyhttps://www.ads-software.com/plugins/custom-content-shortcode/
- The topic ‘ACF and CPTs’ is closed to new replies.