技術ブログ wordpress: the_content htmlタグをとる方法 2021.09.09 WP PHP $mycontents = get_the_content(); //HTMLタグ除去 $mycontents = wp_strip_all_tags( $mycontents ); //ショートコード除去 $mycontents = strip_shortcodes( $mycontents ); echo $mycontents; ツイートする シェアする URLとタイトルをコピーする Prev wordpress: tinyMCE 独自スタイル追加方法 Next wordpress: the_content 一覧へ戻る