How to display a taxonomy custom field in a repeater that outputs a custom post type #105
Unanswered
hsnyc
asked this question in
Technical Help
Replies: 1 comment 1 reply
-
This is the method you would need to use. You could also write a function in the Code Snippets plugin so that you can use Dynamic Data > PHP Function Return Value in an Oxygen element. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am hoping someone knows if this is possible in Oxygen and how to get it done as I have not found a solution using the all mighty Google.
In short, I am trying to display a custom Taxonomy field in a repeater which displays the custom post type the taxonomy is associated with. I have been able to do this using a code block, but can't figure out how to do it using Oxygen's GUI.
So let me break down the setup.
I am using Pods to create CPTs, Fields, and Taxonomies.
I have a the following:
Custom Post Type:
medicationsThe 'medication' CPT has the following custom fields:
release-date,notesTaxonomy:
med-type(hierarchical)The
med-typetaxonomy has a custom field named:med-type-iconThis taxonomy is also associated with the CPT
medicationsso that when I enter a medication I can select the med type.So in a Page, I have a repeater with a query that shows the
medicationsposts.The
medicationscustom fieldsrelease-dateandnotes, as well as the associated taxonomymed-type, are being displayed fine on the page. The problem is how can I also show themed-type-iconfor each of these posts!? I want to do this in order to show themed-typewith its particular icon alongside it.So my questions is: How can I display the Taxonomy custom field
med-type-iconwithin this repeater for each medications post that is being display by the repeater?Thank you in advance for the help :)
Beta Was this translation helpful? Give feedback.
All reactions