Hi @imdyakov,
I hope you’re doing well today. This thread was brought to my attention via the issue tracker and I wanted to chime in with some additional clarification:
I can not output the name of a taxonomy category created for Custom Post Type by using CPT UI. It outputs its ID or some strange code but not the name of the category selected for that taxonomy. What am I doing wrong?
Try enabling a Looper with the type “Current Post Terms”. This will allow you to iterate over all the terms (in a selected taxonomy) associated with the current post. If you add a child element with Looper Consumer enabled, the {{dc:term:title}}
should start working.
I have ACF fields created for the Custom Post Type. Some of them are required and some are optional. I would like to wonder how to hide an element outputting info from an ACF filed if it is blank? I can not figure out the Condition statement which will do that (or maybe this option doesn’t exist for ACF fields for now).
This is a planned feature that we have slated for the Pro 4.1 release which is a shorter cycle going live within the next few weeks. We’ve not settled on an exact approach yet, but it will be possible using Element Conditions to take Dynamic Content and check if it is empty, or has the presence of a particular string. Because it will be based on Dynamic Content, it will naturally integrate with ACF.
Regarding this example:
{{dc:term:meta key="sport"}}
Unfortunately, retrieving term meta is only effective if the value is stored as a scalar (string, number, etc.) value. This isn’t always the case. We’re working on a way to do something like this instead:
{{dc:term:acf field="sport"}}
It would be run through the ACF get_field
function which ensures the way you configure that field will be accounted for. Most notably it will make sure if you choose an output type of URL, it won’t output the ID instead.
Additionally, (albeit a bit off topic) we’re going to be adding support for Loopers to integrate with ACF Repeater fields.
After this update we received an astonishing amount of feedback on how the Looper and Condition systems could be expanded upon for certain use cases, many of which involve ACF. We’re in the process of implementing much of that feedback in a smaller release cycle as a followup to the Layout Builder release.