http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
'orderby' => 'modified'
Related Posts:
- Static Front-Page Excerpts
- When to use WordPress loop or Foreach loop?
- WordPress loop problem: Multiple loops, index.php and is_paged causing duplicate posts on next page
- How to get posts published between a date and today?
- How do I query by post format in WordPress 3.1
- Display posts of the last 7 days
- How to return results of a get_posts() in explicitly defined order
- Modify main WordPress loop with a parse_query filter
- WordPress Custom Query to show posts from last x years
- How should I intercept the main query and inject custom join / order by / group by criteria
- Author List page: Exclude based on last post date
- query_posts sort in multiple directions
- Dynamically excluding current page id
- How to order results by date and meta key?
- Adding Variables to post query
- Is it possible to query_posts using post__in and then Loop through them in the ordered they were queried?
- How to insert content from another Custom Post type into Post?
- Placing post data (title, date, and excerpt) nested in static content
- query_posts() ALWAYS displays something?
- Sorting a query Field by date
- How to remove a plugin filter’s priority on specific loops (custom queries)?
- Custom loops, sticky posts, and pagination nightmare
- Filter Loop by Custom Field Value
- How to get posts published on the latest date?
- Modify loop but keep the original query, what am I doing wrong?
- Post per page not working if no category specified
- Meta query stopped working
- Calling Posts from Specified Cat
- Magazine style frontpage with multiple categories/loops and no duplicate posts
- Most Effective Method? Exclude Category and Number of Posts Per Page
- Script that gets the first tag of post and query all other posts with the same tag
- How to add an “or” instead of and “and” (&) in a WordPress query?
- Query add html after set amount of posts?
- Modify main loop query for paged and meta key
- Create a Loop with Posts Ordered by Most Recent Comments
- Problem with my loops
- Filter posts by current date ( WP Post Carousel )
- Show previous month’s posts
- query_posts and sub pages?
- The_content display a different content from a previous loop
- Including post data in a sidebar occurring outside of and before the Loop
- Multiple loops with / without sticky posts and different post limits
- Limitless amount of posts in custom archive page
- Querying another post category to match current post and display in loop
- get_delete_post_link() inside Loop stubbornly returns nothing
- Custom Post type content within a slider
- Posts are not looping through correctly
- Using functions.php to include code that’s processed inline
- Loop through custom taxanomy in post and display custom fields from posts
- Remove any product that is featured from regular display loop [WooCommerce]
- Two Sections on Woocommerce Catergory Page [closed]
- postsperpage value not being applied
- Query posts only with actual text content (not including shortcode or images)
- How to reverse post navigation at bottom of post
- Ordering posts by custom field and grouped by month
- WP-API: get posts in multiple categories
- How exclude 3 latest posts of a category in query_posts
- Make tag archive display post are ordered by post format
- Query Products & Store IDs in array
- Way to cache a query for 24 hrs
- Multiple posts/pages in one page?
- Order for custom field after the loop
- toggle Multiple Loop with tittle
- query_posts clarification needed
- 2 queries with counters
- Query all post types but limit to parents
- Show single posts date, in a page of posts
- Integrating WordPress with Your Website
- WordPress giving a 404 page when passing a year argument different than the current year
- Custom post query error
- How to Fix an Archive.php That Displays All Posts?
- Add Class according to the order of appearance
- query_posts orderby multiple ways
- Optimize CPT-function with a loop
- Display specific posts on home page
- Make query_post category name dynamic
- How can I list posts with different formats depending on order?
- query_posts orderby postmeta [closed]
- Can I use WP_Query one time and then filter the results multiple times
- pagination broken – clicking next displays “page not found”
- Getting images from media library and get_the_date() not working
- Multiple instances of query_posts
- WordPress Query based on random taxonomy
- Paginate pages with dynamic query
- Displaying and Querying Posts with Featured image
- Pagination linking to first page
- List post only under the category, exclude child category content
- Restrict query_posts by Date?
- Different layout based on post amount?
- How to break up php code to avoid echo
- Query Multiple Custom Post Types & Exclude a Taxonomy Term
- Custom Post type showing up in loop, regular posts are not showing up
- Posts being viewed
- How to solve this without flushing the rewrite rules for each post query the visitor triggers?
- Display 3 posts with different HTML markup using a loop
- View Achive with Category Filter, but Page per post not working
- Performance concerns: index.php vs taxonomy-$taxonomy.php
- Determine if ID is page or post and query the ID
- Pagination for two loops
- Custom template for password protected page