Wordpress投稿者名表示タグ|the_author_lastname
エントリー投稿者のラストネームを出力します。
書式
<?php the_author_lastname(); ?>
引数
無し
サンプル
管理画面の「プロフィールと個人設定」で、ラストネームの欄に記述した名前が表示されます。通常、エントリーループ内でエントリー投稿者の表記に利用します。
<!--エントリーループ内での記述--> <?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_lastname(); ?></small>
<?php the_content('Read the rest of this entry »'); ?>
</div>
<?php endwhile; ?>
トラックバック URL :
コメント (0)