我不熟悉PHP,因为我是一个新手。我试图使用这些代码行,但得到错误。什么是正确的方式来写这个:正确的方式来写这个PHP条件语句
<?php
if (function_exists('wpsabox_author_box')) {
echo wpsabox_author_box();
} else {
echo (
'<div class="postauthor">
<div class="authorprofilepix">'
get_avatar(get_the_author_id() , 80);
'</div>
<div class="authorprofile">
<h4>' the_author(); '</h4>
<p>' the_author_description(); '</p>
</div>
<div class="clearfix"></div>
</div><!--end postauthor-->');
}
?>
感谢预期!
你有什么错误? – RiggsFolly
您需要点'.'来连接字符串。 – jeroen
@VinodVT正如我所说的对你现在删除的答案的评论,那根本不是真的 – Steve