Wordpress作者详细信息未显示在登录页面上

时间:2016-02-16 11:23:59

标签: php wordpress

在Wordpress中,默认行为是所有帖子都显示在域的登陆页面(myblogsite.com)上,但显示的帖子不显示作者的姓名或重力图标。仅当用户选择单个帖子(myblogsite.com/date/title)时才会显示此信息。是否有插件或修复(或黑客)来显示着陆页上显示的帖子的作者姓名和重力图?

我在Wordpress的论坛上看过类似的问题,我尝试过的解决方案也没用。

举个例子:

<?php the_content(''); ?>

之后或之前添加此内容
    <?php if ($lw_post_author == "true" && is_attachment() != TRUE) : ?>
<div class="about_author">
<div class="alignleft"><?php echo get_avatar( get_the_author_id(), '28' );   ?></div>
<div class="alignleft"><h4><?php _e('Author','lightword'); ?>: <a href="<?php the_author_url(); ?> "><?php the_author(); ?></a></h4>
<?php the_author_description(); if(!get_the_author_description()) _e('No description. Please complete your profile.','lightword'); ?></div><div class="clear"></div> </div>
<?php endif; ?>

我正在使用Wordpress 4.4.2

0 个答案:

没有答案
相关问题