我正在使用user-avatar
, 我想在帖子元数据中显示用户图标。http://wordpress.org/plugins/wp-user-avatar/
我是这样写的。
<?php the_author_posts_link(); ?>
<?php echo get_avatar(); ?>
如果我写得像<?php echo get_avatar("myemail@example.com"); ?>
, 然后通过user-avatar
插件。
所以如果我能收到作者的电子邮件,一切都很好。
我试图通过<?php the_author_meta(\'user_email\'); ?>
. 但它不会返回电子邮件,而是直接输出。
我现在卡住了。如何在post meta区域设置用户头像?