我的主题风格是:
<?php $args = array(\'order\' => \'DESC\', \'orderby\' => \'date\', \'nopaging\' => false, \'posts_per_page\' => \'15\', \'category__in\' => array(21));
$query = new WP_Query($args);
if ($query->have_posts()) {
while ($query->have_posts()) {
$query->the_post();
?>
<article>
<!-- Here Last News, This comment added by sirsaleh:. -->
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 ">
<div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 no-padding">
<?php if (has_post_thumbnail()) {
the_post_thumbnail(\'newstree-thumbnail\', array(\'class\' => \'col-xs-12 col-sm-12 col-md-12 col-lg-12 no-padding \'));
}
?>
</div>
<div class="col-xs-12 col-sm-9 col-md-9 col-lg-9 ">
<h4><?php if (function_exists(\'the_subtitle\')) the_subtitle(); ?></h4>
<h3><a title="<?php the_title_attribute(); ?>"
href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
<p><?php the_excerpt(); ?></p>
</div>
<hr class="hratna">
</div>
</article>
<?php
}
}else {
}
它按帖子的初始发布日期对我的分类帖子进行降序排序,但当我在帖子编辑中更改发布日期时(例如改为现在),如下所示
它没有改变,我的职位保持不变!我怎样才能使我的主题顺序显示职位的回应,以改变职位的日期手动。
任何帮助都将不胜感激。