Title: blue_patagoniaの返信 | WordPress.org 日本語

---

# blue_patagonia

  [  ](https://ja.wordpress.org/support/users/blue_patagonia/)

 *   [プロフィール](https://ja.wordpress.org/support/users/blue_patagonia/)
 *   [作成したトピック](https://ja.wordpress.org/support/users/blue_patagonia/topics/)
 *   [作成した返信](https://ja.wordpress.org/support/users/blue_patagonia/replies/)
 *   [返信したトピック](https://ja.wordpress.org/support/users/blue_patagonia/replied-to/)
 *   [エンゲージメント](https://ja.wordpress.org/support/users/blue_patagonia/engagements/)
 *   [お気に入り](https://ja.wordpress.org/support/users/blue_patagonia/favorites/)

 返信を検索

## フォーラムへの返信

3件の返信を表示中 - 1 - 3件目 (全3件中)

 *   フォーラム: [使い方全般](https://ja.wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   返信が含まれるトピック: [トップ画面のギャラリーショートコードを非表示にしたい](https://ja.wordpress.org/support/topic/%e3%83%88%e3%83%83%e3%83%97%e7%94%bb%e9%9d%a2%e3%81%ae%e3%82%ae%e3%83%a3%e3%83%a9%e3%83%aa%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%82%92%e9%9d%9e%e8%a1%a8%e7%a4%ba/)
 *  トピック投稿者 [blue_patagonia](https://ja.wordpress.org/support/users/blue_patagonia/)
 * (@blue_patagonia)
 * [12年、 7ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%88%e3%83%83%e3%83%97%e7%94%bb%e9%9d%a2%e3%81%ae%e3%82%ae%e3%83%a3%e3%83%a9%e3%83%aa%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%82%92%e9%9d%9e%e8%a1%a8%e7%a4%ba/#post-174392)
 * ありがとうございます。
    functions.phpを見る限り、the_excerptではないようでした。
 * > add_filter(‘the_content’, ‘remove_shortcode_from_index’,99);
 * こちらも試してみましたが、やはりトップ画面にはギャラリーショートコードが表示さ
   れたままです・・・。
 *   フォーラム: [使い方全般](https://ja.wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   返信が含まれるトピック: [トップ画面のギャラリーショートコードを非表示にしたい](https://ja.wordpress.org/support/topic/%e3%83%88%e3%83%83%e3%83%97%e7%94%bb%e9%9d%a2%e3%81%ae%e3%82%ae%e3%83%a3%e3%83%a9%e3%83%aa%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%82%92%e9%9d%9e%e8%a1%a8%e7%a4%ba/)
 *  トピック投稿者 [blue_patagonia](https://ja.wordpress.org/support/users/blue_patagonia/)
 * (@blue_patagonia)
 * [12年、 7ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%88%e3%83%83%e3%83%97%e7%94%bb%e9%9d%a2%e3%81%ae%e3%82%ae%e3%83%a3%e3%83%a9%e3%83%aa%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%82%92%e9%9d%9e%e8%a1%a8%e7%a4%ba/#post-174383)
 * nobitaさん、返信ありがとうございます。
    基本的なところがわからなくて恐縮なんですが・・・
   下記の方法で合ってますでしょうか？
 * ①以下をfunctions.phpに適用
 * > function remove_shortcode_from_index($content) {
   >  if ( is_home() ) { $content
   > = strip_shortcodes( $content ); } return $content; } add_filter(‘the_content’,‘
   > remove_shortcode_from_index’);
 * ②以下をテーマのindex.phpに適用
 * > <?php strip_shortcodes( $content ); ?>
 * 試してみたんですけど、ショートコードがトップ画面に反映されたままです。
    どうしたら
   うまく行くのか教えていただけませんか？
 * ちなみにサイトはこちらです。
    [http://photowise.main.jp](http://photowise.main.jp)
 *   フォーラム: [使い方全般](https://ja.wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   返信が含まれるトピック: [ギャラリーの画像を開くとfatal errorになります](https://ja.wordpress.org/support/topic/%e3%82%ae%e3%83%a3%e3%83%a9%e3%83%aa%e3%83%bc%e3%81%ae%e7%94%bb%e5%83%8f%e3%82%92%e9%96%8b%e3%81%8f%e3%81%a8fatal-error%e3%81%ab%e3%81%aa%e3%82%8a%e3%81%be%e3%81%99/)
 *  トピック投稿者 [blue_patagonia](https://ja.wordpress.org/support/users/blue_patagonia/)
 * (@blue_patagonia)
 * [12年、 7ヶ月前](https://ja.wordpress.org/support/topic/%e3%82%ae%e3%83%a3%e3%83%a9%e3%83%aa%e3%83%bc%e3%81%ae%e7%94%bb%e5%83%8f%e3%82%92%e9%96%8b%e3%81%8f%e3%81%a8fatal-error%e3%81%ab%e3%81%aa%e3%82%8a%e3%81%be%e3%81%99/#post-174329)
 * stranger-jpさん、ご指摘の通り修正したら復旧できました！！
    素晴らしいです。本当に
   ありがとうございました。(^^)

3件の返信を表示中 - 1 - 3件目 (全3件中)