Support » Plugin: Advanced Custom Fields » Fatal errorget_field when include/require

  • Hi I include external php file benefits.php thanks to PHP-Exec plugin in the post.

    My benefits.php:

    if( in_array( '1ghz', get_field('benefitsicons') ) )
        echo ...1GHZ!!!!
    <?php } ?>

    The thing is that I receive:

    Fatal error: Call to undefined function get_field() in /home/(…)source(…)/benefits.php on line 2

    When I put the benefits.php source into the post, everything works as a charm…

    Do you have a clue how to solve it? 🙂

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Fatal errorget_field when include/require’ is closed to new replies.