Title: Adding multiple AFC fields to Heading or Advanced Heading elements
Last modified: April 16, 2019

---

# Adding multiple AFC fields to Heading or Advanced Heading elements

 *  [esc99](https://wordpress.org/support/users/esc99/)
 * (@esc99)
 * [7 years ago](https://wordpress.org/support/topic/adding-multiple-afc-fields-to-heading-or-advanced-heading-elements/)
 * Need to add dynamic text to a Heading or Advanced Heading Element that looks 
   like the following:
 * <ACF Field 1> | <ACF Field 2> | <ACF Field 3> | <ACF Field 4>
 * Currently, all I can do is set the dynamic content to one filed. Is there a way
   to add multiple fields? If not, how can one get the desired result. Using columns
   is one way, but the width of the columns won’t change based on the number of 
   characters in the column. Tried the the Table element, but the columns do not
   resize to fit the text in the column.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * (@apprimit)
 * [7 years ago](https://wordpress.org/support/topic/adding-multiple-afc-fields-to-heading-or-advanced-heading-elements/#post-11436889)
 * Hello,
 * You can use ACF shortcode to display the values as per your need. Have you reached
   to the ACF support for this?
 * For the column, try to follow the link and check it works or not – [https://www.w3schools.com/howto/howto_css_equal_height.asp](https://www.w3schools.com/howto/howto_css_equal_height.asp)
 *  Thread Starter [esc99](https://wordpress.org/support/users/esc99/)
 * (@esc99)
 * [7 years ago](https://wordpress.org/support/topic/adding-multiple-afc-fields-to-heading-or-advanced-heading-elements/#post-11436922)
 * Perfect! Many thanks! The following works in a single post template.
    The template
   is associated with an ACF filed group. The shortcodes reference fields in the
   field group.
 * [acf field=”<field-name>”] | [acf field=”<field-name>”] | [acf field=”<field-
   name>”]
 *  [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * (@apprimit)
 * [7 years ago](https://wordpress.org/support/topic/adding-multiple-afc-fields-to-heading-or-advanced-heading-elements/#post-11439412)
 * Is the issue resolved? Can you confirm it?
 *  Thread Starter [esc99](https://wordpress.org/support/users/esc99/)
 * (@esc99)
 * [7 years ago](https://wordpress.org/support/topic/adding-multiple-afc-fields-to-heading-or-advanced-heading-elements/#post-11439429)
 * Yes. In the previous post, I shared the shortcodes that I used. I added the shortcodes
   to the content filed of a shortcode widget and it worked as intended. Many thanks,
   Amit!
 *  [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * (@apprimit)
 * [7 years ago](https://wordpress.org/support/topic/adding-multiple-afc-fields-to-heading-or-advanced-heading-elements/#post-11439707)
 * Glad to hear that it is fixed!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Adding multiple AFC fields to Heading or Advanced Heading elements’ is
closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/oceanwp/4.1.5/screenshot.png)
 * OceanWP
 * [Support Threads](https://wordpress.org/support/theme/oceanwp/)
 * [Active Topics](https://wordpress.org/support/theme/oceanwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/oceanwp/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/oceanwp/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/adding-multiple-afc-fields-to-heading-or-advanced-heading-elements/#post-11439707)
 * Status: not resolved