WordPress是否自动添加锚定标记?我真的很困惑,这是代码:
home.php
<div class="post-bottom">
<?php if ( count( get_the_category() ) ) : ?>
<span class="cat-links">
<?php printf( __( \'Posted in %2$s\', \'twentyten\' ), \'entry-utility-prep entry-utility-prep-cat-links\', get_the_category_list( \', \' ) ); ?>
</span>
<span class="meta-sep">|</span>
<?php endif; ?>
<?php
$tags_list = get_the_tag_list( \'\', \', \' );
if ( $tags_list ):
?>
<span class="tag-links">
<?php printf( __( \'<span class="%1$s">Tagged</span> %2$s\', \'twentyten\' ), \'entry-utility-prep entry-utility-prep-tag-links\', $tags_list ); ?>
</span>
<span class="meta-sep">|</span>
<?php endif; ?>
<span class="comments-link"><?php comments_popup_link( __( \'Leave a comment\', \'twentyten\' ), __( \'1 Comment\', \'twentyten\' ), __( \'% Comments\', \'twentyten\' ) ); ?></span>
<?php edit_post_link( __( \'Edit\', \'twentyten\' ), \'<span class="meta-sep">|</span> <span class="edit-link">\', \'</span>\' ); ?>
</div><!-- .entry-utility -->
这是最终输出:
EDIT:
输出源代码:
<div class="post-bottom">
<span class="cat-links">
Posted in <a href="http://localhost/wpa/category/uncategorized/" title="View all posts in Uncategorized" rel="category tag">Uncategorized</a>
图片:
“已发布”部分具有链接颜色,其行为类似于链接,但没有指针。
EDIT2
奇怪,我删除了
the_excerpt()
它似乎解决了这个问题。但仍然无法理解发生了什么:
<div class="posted-on"><?php twentyten_posted_on(); ?></div>
<p><?php the_excerpt(); ?></p>
<div class="post-bottom">
<?php if ( count( get_the_category() ) ) : ?>