0

所以这是我的代码:

<div id="content" role="main">

    <?php while (have_posts()) : the_post(); ?>

    <div <?php post_class() ?> id="post-<?php the_ID(); ?>">

        <div class="page-content rich-content">

            <?php
                // Recently Updated

                $args = array(                      
                    'view' => 'grid-mini',
                    'title' => __('Recently Added', 'dp'),
                    'post_type' => 'post',
                    'ignore_sticky_posts' => true,
                    'posts_per_page' => 999,
                    'orderby' => 'date',
                );
                dp_section_box($args);
            ?>

        </div>

    </div><!--end .hentry-->
    <?php endwhile; ?>

我想将查询分类到不同的部分。

每个部分都是一个页面,所以我真的不需要将参数放入一个文件中。

我在问如何对它们进行排序:今天,昨天和昨天之前的所有帖子!

我已经在网上搜索了 5 个多小时了,没有运气:)

4

0 回答 0