• esc99

    (@esc99)


    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

    (@apprimit)

    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

    Thread Starter esc99

    (@esc99)

    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

    (@apprimit)

    Is the issue resolved? Can you confirm it?

    Thread Starter esc99

    (@esc99)

    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

    (@apprimit)

    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.