Advanced Custom Fields
[resolved] Fatal Error: Call to undefined function the_field() (4 posts)

  1. oneTarek
    Posted 2 years ago #

    Though this plugin is enable on my site , it shows a fatal error where I call the function the_field()
    Fatal error: Call to undefined function the_field() in /home/..../wp-content/themes/.../page.php

    Is there any solution?

    Thanks in advance


  2. oneTarek
    Posted 2 years ago #

    My issue has been solved. That was my mistake. Actually I downloaded this plugin for wordpress.org and plugin files were blank. Then I downloaded this plugin form https://github.com/elliotcondon/acf/. Now it works for me.

  3. Zagroda
    Posted 2 years ago #

    Can you tell me what files where empty? I did install both versions of this plugin in wordpress 3.5.2, via wordpress and git. And in both case I have the same error, Call to undefined function the_field().

  4. surferride
    Posted 1 year ago #

    In my case I solved it by placing the call out of the custom fields after:

    <?php get_template_part( 'content', 'meta' ); ?>

    And I call the fields like this:

    <?php the_field('ip_address'); ?>

    Hope this helps somebody else.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic