我首先想说这可能是一个非常业余的问题。如果是的话,我道歉。
我的博客位于http://downinthep.it/。我们将作者设置为在http://downinthep.it/about/
上显示当你点击第一作者(瑞恩)时,一切都显示得很好。如果您点击其他任何一个,它会显示第一作者(Ryan)的生物和信息,但它会显示正确的链接和标题属性。
循环集成有问题吗?这是我的author.php:
<?php
get_header();
if ( $post == NULL ) {
$cb_author_id = $author;
} else {
$cb_author_id = get_the_author_meta( 'ID' );
}
$cb_author_name = get_the_author_meta( 'display_name', $cb_author_id );
$cb_theme_style = ot_get_option( 'cb_theme_style', 'cb_boxed' );
?>
<div class="cb-cat-header<?php if ( $cb_theme_style == 'cb_boxed' ) echo ' wrap'; ?>">
<h1 id="cb-cat-title"><span><?php echo __( 'Author', 'cubell' ) . ' <i class="fa fa-long-arrow-right"></i></span> ' . $cb_author_name; ?></h1>
</div>
<div id="cb-content" class="cb-author-page wrap clearfix">
<?php echo cb_author_details( $cb_author_id ); ?>
<div id="main" class="clearfix" role="main">
<?php get_template_part( 'cat', 'style-a' ); ?>
</div> <!-- end #main -->
</div> <!-- end #cb-content -->
<?php get_footer(); ?>
有什么特别突出的吗?我错过了什么?