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
- Some doubts about how the main query and the custom query works in this custom theme?
- Is there a way to exclude the content from the post variable to save on RAM usage?
- Getting Post Comments for post ID using WP_Query() and a Custom Loop?
- How to query post by user role?
- Query posts by custom post type and custom taxonomy
- Pagination Not working on Home Page with 2 Query
- Post Title displaying but not in the wrapped HTML I need
- Two posts in same div – WP loop
- Inserting Post Using wp_insert_post. How to Fill Yoast Plugin SEO Fields
- How to get current post id of a custom post type in a loop using template singel-{custom type}.php?
- Check if date of post is yesterday
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Exclude first 2 posts with meta_key from loop
- Pagination on custom query
- Ordering terms before displaying posts
- Sort Posts by Multiple Meta Values [duplicate]
- Querying posts with meta value that begins with a certain pattern
- Unable To Get Published posts using query_posts
- Read More is not working in query posts
- Setting posts per page in query_posts
- How to reverse the order of WordPress blog posts?
- Trouble with get_next_post() get_previous_post() returning null
- popular post weekly and monthly
- Authors List page : how to exclude posts from certain category
- List custom taxonomy specific to one custom post type
- Two loops, one AJAX loop, exclude posts in first loop from second loop, loops are in different files
- How can I display a PHP foreach loop’s answers by AJAX
- Query a WordPress page by its title (which has a parent page)
- Split wordpress loop to multiple layouts
- post_parent array doesn’t work
- How to get post ID in a Page?
- How to place an image after Nth number of posts in query_posts
- Related Posts: Notice: Undefined offset: 0
- Can’t get pagination to work for sticky posts only
- Displaying multiple post types on home page
- How can I show only 5 posts from the relationship?
- How to add automatically bootstrap 4 order-lg-1 and order-lg-2 classes for columns in foreach loop based on the count?
- WordPress giving a 404 page when passing a year argument different than the current year
- Add Class according to the order of appearance
- Optimize CPT-function with a loop
- WordPress Query based on random taxonomy
- Displaying and Querying Posts with Featured image
- grab neighboring content in a query
- How to put posts in pages using query posts
- Custom loop off by one post
- How to setup blog page to render blog posts minus afew categories
- How to get max value of filtered query post
- Ordering of posts, 2020 Year showing as next event when should be last
- How to append the excerpt to the content in the single post page?
- How to add in WP_Query to every 3 posts displayed? [duplicate]
- Use special template for the first post in the loop
- show latest authors blog post
- display only parent replies count in index.php
- query multiple posts by id using a string parameter, not array()
- Query posts in a category and include only one post per author?
- Pagination problem with multiple loops on the same page
- Static posts page is not working