Remove_filter (‘the_content’, ‘wpautop’) only pages
Question
I would like to apply these two functions that remove <p>
remove_filter('the_content', 'wpautop');
remove_filter( 'the_excerpt', 'wpautop' );
I would like it to only apply to wordpress pages. In the articles I would like to have them. How to do it?
I hope they can help me, I just start programming topics in wordpress.
Thank you.
0
pages
5 years
2017-10-04T15:03:43-05:00
2017-10-04T15:03:43-05:00 0 Answers
75 views
0
Leave an answer