• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Home
  • Blog
  • Sample Page

WordPress Tips

Just another WordPress site

Output the label of an ACF field

July 1, 2016 Leave a Comment

WP Beaches ~

You can output the label of an Advanced Custom Field: ACF field by using the get_field_object() function which stores an array of data about the custom field.

/* * Output Label from ACF field */ $field_name = “acf_field_name_here”; $field = get_field_object($field_name); echo ‘<h3>’. $field[‘label’] . ‘</h3>’;

The post Output the label of an ACF field appeared first on WP

Filed Under: ACF, get_field_object, WordPress Tagged With: ACF, get_field_object, WordPress

Reader Interactions

Related Posts

  • Media Temple Managed WordPress Hosting: Overview and Review
  • Hotjar Heatmap Analytics: An Overview and Review
  • How to Use a Heatmap to Improve Your Website’s Overall Quality
  • GreenGeeks Eco-Friendly Hosting: An Overview and Review

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Copyright ©2019 · WPress.Tips - All Rights Are Reserved · Powered by Genesis Framework