Display ACF fields in <HEAD>

Hi, Team.
I use ACF fields for example to insert custom metatags at posts/pages/CPTs
Sometimes minified JSON-LD schema scripts.
I fill the fields while editing the contents, then source code shows my custom metas and does whatever the meta is intended to get.

meta name=“DCTERMS.title” content="<?php the_field('dctermstitle'); ?>">
meta name=“DCTERMS.description” content="<?php the_field('dctermsdescription'); ?>">
meta name=“DCTERMS.abstract” content="<?php the_field('dctermsabstract'); ?>">

<?php the_field('json-ld'); ?>

I am used to do this with other themes, but I am not able to get the same on PRO.
Header.php is very different from others I’ve seen.
The standard procedure -for my limited skills- is to edit at child theme header.php and done.
The same breaks the site with PRO.
After so much DIY reading, I am getting more and more frustrated :slight_smile:
This can’t be that difficult, have you any hint for me?

Thanks!

Hey Ricard,

Thanks for reaching out!

You need to use a child theme and function to add the meta name in the header. Please note that this is outside the scope of our theme support, I’ll just give you an idea how to output the data.

Hope that helps.

Thanks @marc_a
Looks useful at first glance. I will be very happy to develop the subject and even go further as I read this pointer you gave.
Have a nice weekend!

Hey Ricard,

You’re welcome! If you have any other concerns or clarification regarding our theme features, feel free to open up a new thread.

Thank you.

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