1

在我所有博客文章所在的主页上,我想显示作者的头像,然后将其链接到成员个人资料,例如:domain.com/members/cameron。

我已经设法显示头像,只需要获取网址:<a title="View profile for <?php echo get_the_author(); ?>" href=""><?php echo get_avatar( get_the_author_meta('user_email'), $size = '32' ); ?></a>有人可以帮忙吗?谢谢。

4

1 回答 1

0

你能试试这个吗?

<a title="View profile for <?php echo get_the_author(); ?>"
   href="/members/<?php echo get_the_author_meta('nickname') ?>">
   <?php echo get_avatar( get_the_author_meta('user_email'), $size = '32' ); ?>
</a>
于 2011-02-04T01:13:16.340 回答