目次
the_author_metaで現在ログイン中のユーザー情報を表示
<?php
$user = wp_get_current_user();
$userid = $user -> ID;
the_author_meta( 'display_name', $userid );//display_name
the_author_meta( 'last_name', $userid );//last_name
the_author_meta( 'first_name', $userid );//first_name
?>
コメント