WordPress
wordpress|Pタグを自動挿入させない方法
下のソースの色付けした2か所の部分を削除すれば、OK
[php gutter=”true” highlight=”8,14″] // Display filtersadd_filter( ‘the_title’, ‘wptexturize’ );
add_filter( ‘the_title’, ‘convert_chars’ );
add_filter( ‘the_title’, ‘trim’ );
add_filter( ‘the_content’, ‘wptexturize’ );
add_filter( ‘the_content’, ‘convert_smilies’ );
add_filter( ‘the_content’, ‘convert_chars’ );
add_filter( ‘the_content’, ‘wpautop’ );
add_filter( ‘the_content’, ‘shortcode_unautop’ );
add_filter( ‘the_content’, ‘prepend_attachment’ );
add_filter( ‘the_excerpt’, ‘wptexturize’ );
add_filter( ‘the_excerpt’, ‘convert_smilies’ );
add_filter( ‘the_excerpt’, ‘convert_chars’ );
add_filter( ‘the_excerpt’, ‘wpautop’ );
add_filter( ‘the_excerpt’, ‘shortcode_unautop’);
add_filter( ‘get_the_excerpt’, ‘wp_trim_excerpt’ );
add_filter( ‘comment_text’, ‘wptexturize’ );
add_filter( ‘comment_text’, ‘convert_chars’ );
add_filter( ‘comment_text’, ‘make_clickable’, 9 );
add_filter( ‘comment_text’, ‘force_balance_tags’, 25 );
add_filter( ‘comment_text’, ‘convert_smilies’, 20 );
add_filter( ‘comment_text’, ‘wpautop’, 30 );
add_filter( ‘comment_excerpt’, ‘convert_chars’ );
add_filter( ‘list_cats’, ‘wptexturize’ );
add_filter( ‘single_post_title’, ‘wptexturize’ );
add_filter( ‘wp_sprintf’, ‘wp_sprintf_l’, 10, 2 );
[/php]