将两个函数放在同一行上,如下所示:
<?php the_author_posts_link(); ?> <?php the_time(\'g:i a\'); ?>
如果这不起作用,请首先获取值,然后输出它们,如下所示:
<?php
$author_name = get_author();
$author_link = get_author_posts_url( get_the_author_meta( \'ID\' ) );
$post_time = get_the_time(\'g:i a\');
?>
<p>
<a href="<?php echo $author_link; ?>" title="<?php echo $author_name; ?>"><?php echo $author_name; ?></a> <?php echo $post_time; ?>
</p>