所以我有以下代码:
global $userpro;
$output .= \'<div class="mainpageauthor">\';
$output .= \'<a href="\'.$userpro->permalink($post->post_author).\'">\'.get_the_author_meta(\'display_name\',$post->post_author).\'</a>\';
$output .= \'</div>\';
如何将其更改为html php格式?(我不确定我问的是否正确)。例如,我试图更改它,但我不确定它是否正确:<div class="myrelatedauthor">
<a href="<?php $userpro->permalink($post->post_author); ?>"><?php echo get_the_author_meta(\'display_name\', $post->post_author);?></a>
</div>
我做得对吗?谢谢