网站名称:<?php bloginfo(name); ?> 链接:<?php bloginfo(url); ?>
文章发布时间:<?php the_time(Y年n月j日); ?>
文章链接<?php the_permalink(); ?>
文章标题:<?php the_title();?>
文章目录:<?php the_category(‘>>’,’multiple’);?>
置顶文章显示全文:
<?php if(is_sticky()) : ?>
<?php the_content(); ?>
<?php else:?>
<?php the_excerpt(); ?>
<?php endif;?>方法二:
<?php if(is_sticky()){
the_content();
}else{
echo mb_strimwidth(strip_tags(apply_filters(‘the_content’, $post->post_content)), 0, 150, “…”);
}?>方法三:
<?php if(has_excerpt()){ the_excerpt(); } else{ echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 75, "…"); }?>