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

---

# uuki614

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

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

 返信を検索

## フォーラムへの返信

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

 *   フォーラム: [その他](https://ja.wordpress.org/support/forum/miscellaneous/)
   
   返信が含まれるトピック: [メニュー項目に投稿記事のタイトルを表示したいです。](https://ja.wordpress.org/support/topic/%e3%83%a1%e3%83%8b%e3%83%a5%e3%83%bc%e9%a0%85%e7%9b%ae%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%81%ae%e3%82%bf%e3%82%a4%e3%83%88%e3%83%ab%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84/)
 *  トピック投稿者 [uuki614](https://ja.wordpress.org/support/users/uuki614/)
 * (@uuki614)
 * [16年、 4ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%a1%e3%83%8b%e3%83%a5%e3%83%bc%e9%a0%85%e7%9b%ae%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%81%ae%e3%82%bf%e3%82%a4%e3%83%88%e3%83%ab%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84/#post-128665)
 * takuyaさま
 * 問題解決しました。
    下記のコードをsidebar.phpに入れたところ、 簡単に表示すること
   が可能でした。
 * ————————————————————————
    <?php $posts = get_posts(‘category=20&showposts=0’);
   global $post;?> <dl> <?php foreach($posts as $post): ?> <dd>” title=”<?php the_title();?
   >”> <?php the_title(); ?></dd> <?php endforeach; ?> </dl> ————————————————————————
 * もう1点、ご質問があるのですが、
    既存のウィジェット（archives）を追加すると、
   上記の投稿記事一覧より、追加したウィジェットが上部に 表示されてしまう点です。
 * 今回のように、直接、sidebar.phpに書き込む方法もあるのですが、
    それだとwpを使用
   している意味がないのかなと、、。 ちなみに現在のsidebar.phpのソースは下記になって
   います。
 * ————————————————————————
    <div id=”sidebar”>
 * <?php endif; ?>
 * <?php $posts = get_posts(‘category=20&showposts=0’); global $post;?>
    <dl> <?
   php foreach($posts as $post): ?> <dd>” title=”<?php the_title(); ?>”> <?php the_title();?
   ></dd> <?php endforeach; ?> </dl>
 * <?php $posts = get_posts(‘category=21&showposts=0’); global $post;?>
    <dl> <?
   php foreach($posts as $post): ?> <dd>” title=”<?php the_title(); ?>”> <?php the_title();?
   ></dd> <?php endforeach; ?> </dl>
 * </div>
 * <!– #sidebar –>
 * ————————————————————————
 * ご指導、よろしくお願い致します。

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