V
V
Vitaly Frolov2019-07-10 14:36:25
WordPress
Vitaly Frolov, 2019-07-10 14:36:25

Not displaying ACF custom field in woocommerce category?

I want to put my custom header h1 in the field instead of describing the category itself. That is, the task is only to display a custom field there. I understand where to stick all this, I output it like this,
<h1><?php the_field('cat_title'); ?></h1>but for some reason it does not work, only the <h1></h1>empty tag is visible.
In custom fields, I output it like this 5d25cd81dd497143706804.png
. I understand that the problem is in the code itself <? php the_field ('cat_title'); ?> or I created the field itself incorrectly. Help me figure it out, thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question