Take the 2-minute tour ×
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' );
        wp_reset_query();
share|improve this question
add comment

1 Answer

Your Answer

 
discard

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.