Custom Fields Shortcodes
[resolved] Options Page for ACF? (3 posts)

  1. stevehvacgp
    Posted 2 years ago #

    I think this was brought up before, but it doesn't appear that the shortcodes work with variables set in the options page, the add-on for Advanced Custom Fields. Is there a way I can do this or do you guys plan on adding support for this?

    According to the add-ons page all that would have to happen to call it is add the below code to the plugin: <?php the_field($field_name, 'option'); ?>


    Thank you!


  2. sahimepani
    Posted 2 years ago #

    Yes, It doesn't work. I'm looking for it too. Once it starts working, it opens lots of custom layout possibilities.


  3. Xtremefaith
    Posted 1 year ago #

    If you can clearify you question I may be able to help. Currently my custom starter theme allows you to set options in option pages that then effect ACF fields used throughout the site.

    You must export the fields to PHP so they are initiated in the code not the database. Then from that point its all about where you hook. Since 4.3 you can use get_field() within your functions.php scope

    Core: get_field can now be used within the functions.php file

    I believe what you may be attempting is possible but I need better details to give you specifics. ACF is an awesome plugin and I've used it to great depths that I doubt there is anything it can't do :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic