首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Wordpress作者框

问Wordpress作者框
EN

WordPress Development用户
提问于 2015-08-09 16:20:33
回答 1查看 226关注 0票数 0

我有一个wordpress网站,在媒体寺庙共享主持。当我的网站在共享主机上时,wordpress作者框不会出现。我已将我的网站从共享主机转移到我的服务器上。在我转移我的网站后,双作者框出现在我的博客页面上。所有密码都一样。原因何在?

谢谢。

EN

回答 1

WordPress Development用户

发布于 2015-08-10 13:00:48

我用的是Gameleon主题。224-261之间的Single.php代码行:

代码语言:javascript
复制
<?php wp_link_pages( array( 'before' => '<div class="pagination">' . __( 'Pages:', 'gameleon' ), 'after' => '</div>' ) ); ?>

<div class="clearfix"></div>

</div><?php // end of .post-entry / ?>
</div><?php // end of #post-the_ID(); / ?>

</div><?php // end of td-wrap-content / ?>
</div><?php // end of td-content-inner / ?>



<?php  if( !function_exists( 'wpsabox_author_box' ) and get_the_author_meta( 'description' ) != '' and gameleon_get_option(     'td_post_author_box' ) == 1 ) : ?>

<div class="td-content-inner-single">

<div id="author-meta">
<?php if( function_exists( 'get_avatar' ) ) {
echo get_avatar( get_the_author_meta( 'user_email' ), '100' );
} ?>
<div class="about-author"><?php the_author_posts_link(); ?></div>
<div class="auth-desc vcard author"><span class="fn"><?php     the_author_meta( 'description' ) ?></span></div>
<div class="clearfix"></div>
</div><?php // end of #author-meta / ?>

</div><?php // end of td-content-inner-single / ?>

<?php endif; // no description, no author's meta ?>


<?php if ( function_exists( 'wpsabox_author_box' ) ) :?>
<div class="td-content-inner-single-sabox">
<?php echo wpsabox_author_box(); // Our Simple Author Box plugin ?>
</div><?php // end of td-content-inner-single-sabox / ?>
<?php endif; ?>


<?php echo gameleon_related_posts(); ?>

我删除了"php echo wpsabox_author_box();//我们的简单作者框插件?>“,但是,这只删除了一个作者框,其他的作者框仍然出现在站点上。

票数 0
EN
页面原文内容由WordPress Development提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://wordpress.stackexchange.com/questions/198116

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档