Support

Account

Home Forums Front-end Issues How can I remove auto p tag from textarea field in taxonomy arhive?

Solving

How can I remove auto p tag from textarea field in taxonomy arhive?

    • wise

    • March 23, 2020 at 6:27 pm

    I made textarea custom field in taxonomy archive admin panel.
    When I display the texts , I got auto p tag inserted.
    I tried code below but did not work.
    remove_filter (‘acf_the_content’, ‘wpautop’);

    How can I disable the auto p tag?

  • In your textarea field settings there is a setting labeled New Lines, set it to No Formatting and it will not wrap anything in <p> tags.

    • wise

    • March 23, 2020 at 6:50 pm

    Sorry but the setting does not work. I guess by default , it is set as No Formatting though.
    Aurop occured in my case.

  • If the setting is not working then the next thing I’d do is look for a acf/format_value filter in the theme or another plugin that is forcing it to happen anyway.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.