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?

  • 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.

  • 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)

The topic ‘How can I remove auto p tag from textarea field in taxonomy arhive?’ is closed to new replies.