Answer the question
In order to leave comments, you need to log in
How to disable HTML tag scraping in Wordpress?
Good afternoon. Can you please tell me how to disable the function of clearing html tags in Wordpress?
For example, I am pasting the following code into a page:
<div itemscope itemtype="http://schema.org/ImageObject">
<h2 itemprop="name">Текст</h2>
</div>
<div>
<h2>Текст</h2>
</div>
Answer the question
In order to leave comments, you need to log in
remove_filter( 'the_content', 'wpautop' ); // Отключаем автоформатирование в полном посте
remove_filter( 'the_excerpt', 'wpautop' ); // Отключаем автоформатирование в кратком(анонсе) посте
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question