the_author_firstname

カテゴリー: 投稿者タグ — admin @ 12:15 AM

Wordpress投稿者名表示タグ|the_author_firstname

エントリー投稿者のファーストネームを出力します。

書式

<?php the_author_firstname(); ?>

引数

無し

サンプル

管理画面の「プロフィールと個人設定」で、ファーストネームの欄に記述した名前が表示されます。通常、エントリーループ内でエントリー投稿者の表記に利用します。

<!--エントリーループ内での記述-->

    <?php while (have_posts()) : the_post(); ?>        <div class="post" id="post-<?php the_ID(); ?>">

            <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>

            <small>投稿者: <?php the_author_firstname(); ?></small>   

                <?php the_content('Read the rest of this entry »'); ?>
        </div>

<?php endwhile; ?>

コメントはまだありません »

コメントはまだありません。

このコメント欄の RSS フィード トラックバック URL

コメントをどうぞ

You must be logged in to post a comment.