如果我想获得当前用户的自定义字段,我会使用类似的内容。
<?php echo get_user_meta($user_info->ID,\'address_line_2\',true);?
>
然而,这次我想要作者,所以我尝试了以下的多个版本,但都没有用。
<?php
$thisauthorID = get_the_author_ID();
echo get_the_author_meta($thisauthorID,\'address\',true)
;?>
有什么想法吗?非凡的