Problems with the [pass] shortcode
-
Hello! I wonder if you could help me a bit with the [pass] shortcode.
I’m building a website for an educational institute. For the courses, I use regular pages with custom fields (created by ‘Advanced Custom Fields’).
For the faculty, I’m using another plugin that creates a custom post type.On each course page, I’d like to display a few info from the custom fields, and the faculty member teaching it (associated through ACF).
So this is what i’m doing so far:
<p><h6>Course code</h6> [content field="icsd-code"]</p> <p><h6>ECTS</h6> [content field="icsd-ects"]</p> <p><h6>Field</h6> [content field="icsd-fields"]</p> <p><h6>Teacher</h6> [content field="icsd-teaching"] // here it displays just a number - the custom post id of the associated faculty member [pass field="icsd-teaching"] [content id="{FIELD}" type="faculty" field="title"] [content id="{FIELD}" type="faculty" field="image"] [/pass] </p>
The custom fields from the course page are displayed just fine. But when I pass the ID to my custom post type, something goes really wrong… any idea what that might be?
https://www.ads-software.com/plugins/custom-content-shortcode/
- The topic ‘Problems with the [pass] shortcode’ is closed to new replies.