Dynamic text with ACF custom taxonomy

I have created a custom taxonomy called clients which I have added to portfolios and galleries

I am trying to add dynamic text to show the name of the taxonomy. Galleries can select multiple clients but portfolios can only select one

{{dc:post:meta key=“client”}}
I have tried this and
{{dc:acf:term_field field=“field_6524b57597ed6”}}





Hello @wicara,

Thanks for writing in! You do not need to use dynamic content since this is a taxonomy. Simply use the Terms element and make sure to change the provider from “All Post Terms” to “Current Post Terms” and select the “Clients” taxonomy as well.
Screenshot 2023-10-12 at 8.08.50 AM

Best Regards.

except I am trying to add this to a parameter to show content based on the selection on the edit portfolio select custom taxonomy using a single selection and the content is loaded into the page.
image
wanting to use it where I am adding the parameter I have created a field in the portfolio and it can only be one selected. All I need to do is add the slug into the parameter box

Hello @wicara,

You can run the Terms Looper and then you can nest your Component.

Section
    Row
        Column
            Terms Looper
                Your Component here so that you can use {{dc:term:slug}} for the Customer

Hope this makes sense.

This sort of works except it doesn’t for the component, I think its because I can not set the component as a looper consumer, when I add the component that option is not available to add in the single page template hence why I was trying to work out the above. Is there a step that I am missing?

based on https://theme.co/docs/acf-pro-and-loopers I should be able to use the acf values but
{{dc:post:meta key=“cp_1”}}

{{dc:acf:term_field field=“cp_1”}}

{{dc:acf:post_field field=“6524b57597ed6”}}

{{dc:acf:option_field field=“field_6524b57597ed6”}}

none of these seem to pull the value and show the it. The meta value shows the taxonomy value.

Hello @wicara,

Can you please provide which layout you were working on so I can check and investigate your issue further? You can post the link in the secure note.

Thank you in advance.

I ended up working it out from your previous answer the problem I was having was that I had to have the looper provider and the consumer in the component. I still would not mind working out how to use the ACF as above but the direct issue is resolved. Happy to go further for anyone else who has a similar problem

Hey @wicara,

We’re glad that it is now working properly on your end.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.