回答編集履歴

1

追記

2018/11/03 01:52

投稿

退会済みユーザー
test CHANGED
@@ -1,3 +1,15 @@
1
1
  `strip_shortcodes`を使えばいいんじゃないかと思いますが。
2
2
 
3
3
  [関数リファレンス/strip shortcodes](http://wpdocs.osdn.jp/%E9%96%A2%E6%95%B0%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9/strip_shortcodes)
4
+
5
+
6
+
7
+ **反応が無いので追記**
8
+
9
+ ```
10
+
11
+ echo esc_html(wp_trim_words( strip_shortcodes( get_the_content() ), 130 ));
12
+
13
+ ```
14
+
15
+ このように書き換える。