E
E
Endru2015-06-17 14:27:09
CMS
Endru, 2015-06-17 14:27:09

Wordpress how to remove p tags from auto-completion when publishing a post?

Hello. Tell me how to solve this problem, when creating a post, I write everything in html, click publish and wordpress itself substitutes tags where it is not needed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2015-06-17
@EndruAN

In functions.php write:

/** Отключаем автоформатирование */
remove_filter( 'the_content', 'wpautop' );

More details here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question