G
G
gassmonkey2016-05-07 14:56:59
WordPress
gassmonkey, 2016-05-07 14:56:59

wordpress, acf. How to display the values ​​of custom fields on all pages?

I write in the page template.
<?php the_field('custom_field'); ?>
but the value is displayed only on the main one, when switching to internal ones there is a void. The same template is used on the main and internal pages. CHADNT?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
gassmonkey, 2016-05-07
@gassmonkey

The issue was resolved in this way.
<?php the_field('custom_field,'option'); ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question