WordPressで記事の内容を出力する
<?php the_content(); ?>
さくっとカスタマイズしたいときに迷ったのでメモメモ。
全体のpを消すなら
wp-includesのdefault-filters.php
を修正すればOK。
add_filter('the_content', 'wpautop');
add_filter('the_excerpt', 'wpautop');
をコメントアウト。
部分的に使うのであれば
<?php the_content(); ?>
の前に
<?php remove_filter ('the_content', 'wpautop'); ?>
でOK。
プラグインもあるけど、いろいろと問題が出てくるので、
基本こっちのほうが楽かなぁ