现在位置: 首页 > CMS知识 > 正文

wordpress调用全站下的最新文章

发布时间:2022 年 8 月 19 日

本文作者:帮建站

点击次数:346

<?php
query_posts(‘showposts=3&orderby=new’);
while(have_posts()): the_post();
?>
<dd>
<h6><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></h6>
<p> <span><a href=”<?php the_permalink(); ?>”><?php echo mb_strimwidth(strip_tags(apply_filters(‘the_content’, $post->post_content)), 0, 48,’…’); ?></a></span> </p>
</dd>
<?php endwhile; ?>

 

问题本身还是很简单的,只是对于不熟悉的网友来说不知道什么原因,如果英语不太好的话,就以为自己买了个假主题了。问题本身还是很简单的,只是对于不熟悉的网友来说不知道什么原因,如果英语不太好的话,就以为自己买了个假主题了。


首页 在线 手机