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

---

# tepco

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

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

 返信を検索

## フォーラムへの返信

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

 *   フォーラム: [使い方全般](https://ja.wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   返信が含まれるトピック: [ページスラッグからIDの取得について](https://ja.wordpress.org/support/topic/%e3%83%9a%e3%83%bc%e3%82%b8%e3%82%b9%e3%83%a9%e3%83%83%e3%82%b0%e3%81%8b%e3%82%89id%e3%81%ae%e5%8f%96%e5%be%97%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/)
 *  トピック投稿者 [tepco](https://ja.wordpress.org/support/users/tepco/)
 * (@tepco)
 * [17年、 8ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%9a%e3%83%bc%e3%82%b8%e3%82%b9%e3%83%a9%e3%83%83%e3%82%b0%e3%81%8b%e3%82%89id%e3%81%ae%e5%8f%96%e5%be%97%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-116763)
 * 重ね重ねありがとうございます。
    勉強不足を痛感しました。 表面的なことしか考え
   てませんでしたが、 もっとよく理解しないとだめですね。
 * ありがとうございました。
 *   フォーラム: [使い方全般](https://ja.wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   返信が含まれるトピック: [ページスラッグからIDの取得について](https://ja.wordpress.org/support/topic/%e3%83%9a%e3%83%bc%e3%82%b8%e3%82%b9%e3%83%a9%e3%83%83%e3%82%b0%e3%81%8b%e3%82%89id%e3%81%ae%e5%8f%96%e5%be%97%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/)
 *  トピック投稿者 [tepco](https://ja.wordpress.org/support/users/tepco/)
 * (@tepco)
 * [17年、 8ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%9a%e3%83%bc%e3%82%b8%e3%82%b9%e3%83%a9%e3%83%83%e3%82%b0%e3%81%8b%e3%82%89id%e3%81%ae%e5%8f%96%e5%be%97%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-116759)
 * うわーありがとうございます！！
    おかげさまで何とかなりました。
 * せっかくなので今回使用したサンプルを書いておきます。
 *     ```
       <!-- スラッグからページを表示する -->
       <?php $page = get_page_by_path ('slug'); echo $page->post_content; ?>
       ```
   
 *     ```
       <!-- スラッグからページIDを表示する -->
       <?php $page = get_page_by_path ('slug'); echo $page->ID; ?>
       ```
   

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