[Resolved] New line formatting in headline dynamic options

Home Forums Support [Resolved] New line formatting in headline dynamic options

Home Forums Support New line formatting in headline dynamic options

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1929830
    Jesse

    Hi,

    When using a Headline block to get an ACF Textarea or WYSIWYG field via dynamic options it strips the new line formatting so there are no hard returns or paragraphs.

    I can add a <br /> to a textarea, but the WYSIWYG field removes them when switching back to the Visual tab.

    Is there a filter to disable the automatic formatting happening on the Headline block?

    #1930845
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    The Headline block wasn’t built with the purpose of outputting paragraphs of text.

    This would be better in our Dynamic Content block, however it isn’t currently possible to output custom post meta. I’ve logged an issue for this.

    For now, you’ll want to simply create a shortcode and use it in your template:

    add_shortcode( 'my_meta_content', function() {
        return get_post_meta( get_the_ID(), 'my_meta_key', true );
    } );
    #1930878
    Jesse

    Thanks Tom, this will work for now!

    #1932084
    Tom
    Lead Developer
    Lead Developer
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.