ACF Returns ID instead of Value, Throws Error when Returning Object

I have a child theme and have customized content-portfolio.php to show my ACF custom field called “amdi-device” but it returns a number instead of the text value of the field.

https://www.amdi.net/portfolio-item/halloween-knock-knock-jokes/

In ACF I have tried to switch the Return Value from Term ID to Term Object but when I do that, the page throws an error and looks like this

How can I make the page display the text value instead of the numeric ID?

Hello @kvpadmin,

Thanks for writing in!

Will you please share the custom code you have added in your content-portfolio.php file? meanwhile, please check out how to display the ACF data in this knowledge base article:

Please let us know how it goes.

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