Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I would like to list posts by the "modified" date not the published date. Is there a way to do this?

        $documents = array('posts_per_page' => 10, 'post_type' => 'documents',);
        query_posts( $documents );
        get_template_part( 'loop', 'docid' );
share|improve this question

1 Answer 1

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.