Title: プラグイン「Child Pages Shortcode」の３点リーダーを「続きを読む」にしたい
Last modified: 2016年7月30日

---

# プラグイン「Child Pages Shortcode」の３点リーダーを「続きを読む」にしたい

 *  [mrs-piggy](https://ja.wordpress.org/support/users/mrs-piggy/)
 * (@mrs-piggy)
 * [14年、 2ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%80%8cchild-pages-shortcode%e3%80%8d%e3%81%ae%ef%bc%93%e7%82%b9%e3%83%aa%e3%83%bc%e3%83%80%e3%83%bc%e3%82%92%e3%80%8c%e7%b6%9a%e3%81%8d%e3%82%92/)
 * functions.phpに以下のように設定しましたが、反映されませんでした。
 *     ```
       function new_excerpt_more($more) {
            return ' ... <a class="more" href="'. get_permalink() . '">続きを読む</a>';
       }
       add_filter('excerpt_more', 'new_excerpt_more');
       ```
   
 * どこか他のところで設定しないといけないのでしょうか？
 * どなたか教えてください。
    よろしくお願いします。

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

 *  トピック投稿者 [mrs-piggy](https://ja.wordpress.org/support/users/mrs-piggy/)
 * (@mrs-piggy)
 * [14年、 2ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%80%8cchild-pages-shortcode%e3%80%8d%e3%81%ae%ef%bc%93%e7%82%b9%e3%83%aa%e3%83%bc%e3%83%80%e3%83%bc%e3%82%92%e3%80%8c%e7%b6%9a%e3%81%8d%e3%82%92/#post-150736)
 * いろいろ調べてみましたが、やはり分かりません・・・
    どなたかヘルプください。
 *  [soedaken](https://ja.wordpress.org/support/users/soedaken/)
 * (@soedaken)
 * [13年、 4ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%80%8cchild-pages-shortcode%e3%80%8d%e3%81%ae%ef%bc%93%e7%82%b9%e3%83%aa%e3%83%bc%e3%83%80%e3%83%bc%e3%82%92%e3%80%8c%e7%b6%9a%e3%81%8d%e3%82%92/#post-150805)
 * プラグイン編集で
 * child-pages-shortcode/child-pages-shortcode.php
 * のファイルを編集します。
 * 下のほうの
 * private function get_template()
    { $html = “\n”; $html .= ‘<div id=”child_page-%
   post_id%” class=”child_page” style=”width:%width%;max-width:100%;”>’; $html .
   = ‘<div class=”child_page-container”>’; $html .= ‘<div class=”post_thumb”>[%post_thumb%](https://ja.wordpress.org/support/topic/%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E3%80%8Cchild-pages-shortcode%E3%80%8D%E3%81%AE%EF%BC%93%E7%82%B9%E3%83%AA%E3%83%BC%E3%83%80%E3%83%BC%E3%82%92%E3%80%8C%E7%B6%9A%E3%81%8D%E3%82%92/%post_url%?output_format=md)
   </div>’; $html .= ‘<div class=”post_content”>’; $html .= ‘<h4>[%post_title%](https://ja.wordpress.org/support/topic/%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E3%80%8Cchild-pages-shortcode%E3%80%8D%E3%81%AE%EF%BC%93%E7%82%B9%E3%83%AA%E3%83%BC%E3%83%80%E3%83%BC%E3%82%92%E3%80%8C%E7%B6%9A%E3%81%8D%E3%82%92/%post_url%?output_format=md)
   </h4>’; $html .= ‘<div class=”post_excerpt”>%post_excerpt%</div>’; ⇒ $html .=‘
   <div>[続きを読む »](https://ja.wordpress.org/support/topic/%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E3%80%8Cchild-pages-shortcode%E3%80%8D%E3%81%AE%EF%BC%93%E7%82%B9%E3%83%AA%E3%83%BC%E3%83%80%E3%83%BC%E3%82%92%E3%80%8C%E7%B6%9A%E3%81%8D%E3%82%92/%post_url%?output_format=md)
   </div>’; $html .= ‘</div><!– .post_content –>’; $html .= ‘</div><!– .child_page-
   container –>’; $html .= ‘</div><!– #child_page-%post_id%” –>’; $html .= “\n”;
 * ⇒の行を追加しました。
 *  [JKTMG](https://ja.wordpress.org/support/users/jktmg/)
 * (@jktmg)
 * [12年、 3ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%80%8cchild-pages-shortcode%e3%80%8d%e3%81%ae%ef%bc%93%e7%82%b9%e3%83%aa%e3%83%bc%e3%83%80%e3%83%bc%e3%82%92%e3%80%8c%e7%b6%9a%e3%81%8d%e3%82%92/#post-150816)
 * soedakenさん
    ありがとうございます！できました。！
 * 続きを読むを押すことで、
    別タブで詳細ページが開くように上記コードを少し改造し
   てみました。
 * `$html .= '<div><a href="%post_url%">続きを読む</a></div>';`
 * どなたかの参考になると思いここに記しておきます。
 * あと間違えて連投してしまい申し訳ございません。
 *  [JKTMG](https://ja.wordpress.org/support/users/jktmg/)
 * (@jktmg)
 * [12年、 3ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%80%8cchild-pages-shortcode%e3%80%8d%e3%81%ae%ef%bc%93%e7%82%b9%e3%83%aa%e3%83%bc%e3%83%80%e3%83%bc%e3%82%92%e3%80%8c%e7%b6%9a%e3%81%8d%e3%82%92/#post-150817)
 *  [JKTMG](https://ja.wordpress.org/support/users/jktmg/)
 * (@jktmg)
 * [12年、 3ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%80%8cchild-pages-shortcode%e3%80%8d%e3%81%ae%ef%bc%93%e7%82%b9%e3%83%aa%e3%83%bc%e3%83%80%e3%83%bc%e3%82%92%e3%80%8c%e7%b6%9a%e3%81%8d%e3%82%92/#post-150818)
 *  [Takuro Hishikawa](https://ja.wordpress.org/support/users/hissy/)
 * (@hissy)
 * [12年、 3ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%80%8cchild-pages-shortcode%e3%80%8d%e3%81%ae%ef%bc%93%e7%82%b9%e3%83%aa%e3%83%bc%e3%83%80%e3%83%bc%e3%82%92%e3%80%8c%e7%b6%9a%e3%81%8d%e3%82%92/#post-150819)
 * プラグインファイルを直接書き換えるのは、常に推奨されません。バージョンアップを
   行なうと、カスタマイズした範囲が消えてしまうでしょう。
 * テンプレートのカスタマイズ方法は作者が日本語で解説していますので、その方法を踏襲
   してください
    [http://firegoby.jp/wp/child-pages-shortcode](http://firegoby.jp/wp/child-pages-shortcode)
 *  [JKTMG](https://ja.wordpress.org/support/users/jktmg/)
 * (@jktmg)
 * [12年、 3ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%80%8cchild-pages-shortcode%e3%80%8d%e3%81%ae%ef%bc%93%e7%82%b9%e3%83%aa%e3%83%bc%e3%83%80%e3%83%bc%e3%82%92%e3%80%8c%e7%b6%9a%e3%81%8d%e3%82%92/#post-150820)
 * >Takuro Hishikawaさん
    夜分にご指摘して頂きありがとうございます。
 * [http://firegoby.jp/wp/child-pages-shortcode](http://firegoby.jp/wp/child-pages-shortcode)
 * 上記サイトにあるように
 * 固定ページのカスタムフィールドで下記のように設定することで「続きを読む」が表示
   されました。
 * これでプラグインのバージョンアップの際にも設定が引き継がれるかと思います。
 * ————————————————-
    <固定ページ_カスタムフィールド>
 * 名前= child-pages-template
    テンプレート=
 *     ```
       <div id="child_page-%post_id%" class="child_page" style="width:%width%;">
           <div class="child_page-container">
               <div class="post_thumb"><a href="%post_url%">%post_thumb%</a></div>
               <div class="post_content">
                     <h4><a href="%post_url%">%post_title%</a></h4>
                     <div class="post_excerpt">%post_excerpt%</div>
                  →   <div><a href="%post_url%" target="_blank">続きを読む</a></div>
               </div>
           </div>
       </div>
       ```
   
 * ※→の箇所が続きを読むのところです。
    ————————————————-

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

 トピック「プラグイン「Child Pages Shortcode」の３点リーダーを「続きを読む」にした
い」には新たに返信することはできません。

## タグ

 * [child pages shortcode](https://ja.wordpress.org/support/topic-tag/child-pages-shortcode/)
 * [excerpt](https://ja.wordpress.org/support/topic-tag/excerpt/)
 * [read more](https://ja.wordpress.org/support/topic-tag/read-more/)
 * [抜粋](https://ja.wordpress.org/support/topic-tag/%e6%8a%9c%e7%b2%8b/)

 * フォーラム: [プラグイン](https://ja.wordpress.org/support/forum/plugins/)
 * 7件の返信
 * 4人の参加者
 * 最後の返信者: [JKTMG](https://ja.wordpress.org/support/users/jktmg/)
 * 最後の活動: [12年、 3ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%80%8cchild-pages-shortcode%e3%80%8d%e3%81%ae%ef%bc%93%e7%82%b9%e3%83%aa%e3%83%bc%e3%83%80%e3%83%bc%e3%82%92%e3%80%8c%e7%b6%9a%e3%81%8d%e3%82%92/#post-150820)
 * 状態: 未解決

## トピック

### 人気のトピック

### 返信がないトピック

### サポート関連ではないトピック

### 解決済みのトピック

### 未解決のトピック

### すべてのトピック
