wordpress模版代码问题
wordpress模版代码问题
日期:2021-06-07 01:04:42 人气:1
在需要的地方添加一段最新文章调用代码,代码如下:
<ul>
<?php $post_query = new WP_Query(‘showposts=5′);
while ($post_query->have_posts()) : $post_query->the_post();
$do_not_duplicate = $post->ID; ?>
<li><a href=”<?php
<ul>
<?php $post_query = new WP_Query(‘showposts=5′);
while ($post_query->have_posts()) : $post_query->the_post();
$do_not_duplicate = $post->ID; ?>
<li><a href=”<?php