Support

Account

Home Forums Backend Issues (wp-admin) Using fields outside the loop Reply To: Using fields outside the loop

  • Hi @squarestarmedia

    Currently, the ACF functions can not be used in the root of the functions.php file.
    You need to use an action on or later than ‘init’ to get the ACF functions to work.

    As for the get_fields function, there is a parameter to specify a post_id. Use this to target the post to load the values from.

    Thanks
    E