WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. stevehvacgp
    Member
    Posted 1 year 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'); ?>

    http://www.advancedcustomfields.com/add-ons/options-page/

    Thank you!

    http://wordpress.org/extend/plugins/custom-fields-shortcodes/

  2. sahimepani
    Member
    Posted 11 months ago #

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

    Anyone?

  3. Xtremefaith
    Member
    Posted 8 months 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

    4.3.0
    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

About this Topic