Archived topic
HTML formatting in headline dynamic options with ACF
3 replies · Started by Ana Rosiris on June 30, 2022
Hi,
I have read this ticket https://generatepress.com/forums/topic/new-line-formatting-in-headline-dynamic-options/#post-2266147
I have a similar problem:
1) I created custom field with ACF.
https://www.screencast.com/t/lpD6iO1b
2) In some field I use Textarea or WYSIWYG.
3) When I use Titular (Dynamic) this it show but not like with <br>
https://www.screencast.com/t/EZUaMBkLQQ
https://www.screencast.com/t/iW80JowKaap
4) This you explain this "I have read this ticket https://generatepress.com/forums/topic/new-line-formatting-in-headline-dynamic-options/#post-2266147 "
And I created a snippet. But I don't know how use in my template Generatepress Pro.
https://www.screencast.com/t/3AnYOnBznpJP
Could you help me to use and fix this issue.
Hi there,
do you know how to create a Shortcode in ACF ?
Hi David,
No, I don`t know.
See here:
https://www.advancedcustomfields.com/resources/displaying-custom-field-values-in-your-theme/
This is there shortcode:
[acf field="{$field_name}"]
Where it says {$field_name} replace it with the name of your field.
You can then add the shortcode inside a GB Headline Block.