Tagged: acf, custom fields, custom post types
Hello. I´m using Custom Post Types UI and ACF.
Everything works fine as long as the naitive WP-fields are used, but i can´t get the custom fields to work.
In a page template that I created from page.php I have declared the variable $teacher_role = get_field(‘teacher_role’);
and put
<p><?php echo $teacher_role; ?></p>
in the loop.
But the custom field doesn´t show up.
The same thing works fine when working on the _underscore theme.
Hi thomaslester!
Have you contacted the plugin authors? What happens in the default theme?
Best regards,
Elliott
Hi Elliott.
Tnx, for replying.
I found the error. Just a typo.
and maybe also the need for adding the var. directly in the loop instead of the top of the page-template.
best regards
Thomas