Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #432487

    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.

    #433079

    Hi thomaslester!

    Have you contacted the plugin authors? What happens in the default theme?

    Best regards,
    Elliott

    #433158

    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

    #433861

    Hi!

    Glad you got it fixed, let us know if you have any other questions.

    Regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.