You can add code below to the beginning of loop.php
add_action('pre_get_posts', 'wpse_change_post_order');
function wpse_change_post_order($query){
$query->set('order','ASC');
$query->set('orderby','date');
}
the oldest posts will be in the home page.
Related Posts:
- How do I reorder (pop and push) items from WP_Query?
- Should we trust the post globals?
- Get first post from wp_query
- WP_Query: Why is sticky post not first item in loop?
- Query *only* sticky posts
- How to exclude latest x posts from a paginated query?
- WordPress Number of Posts Not Changing With posts_per_page
- This AJAX Code Doesn’t Work – Looking for elegant solution
- Specific loop in Shortcode
- Search widget breaks when using multiple loops?
- Converting multiple loops into one single loop with pagination
- Display posts with comments closed, with pagination?
- Group posts by year in loop
- How would I get 1 latest post from a query for 5 posts?
- Loop through all product posts?
- WP Query – duplicated posts once including tags in search results
- Display post from current category and same tag?
- WP_Query orderby not working with meta_value_num and menu_order
- Why WP_Query(‘showposts=5’) shows only 1 post?
- How can I sort posts by the date and a custom meta field?
- Blog post per page setting conflicting with custom WP_Query?
- How to exclude latest x posts from a paginated query?
- WP Query – Posts Per Page not working in combination with category__in
- Pausing and Resuming WP_Query results
- How to : pagination in 3 different custom loops on the same page
- List authors with the last post title and order by last post date
- How to order posts by meta_value and title
- wp_query random post
- how to get post order by post id wp_query?
- Possible to alternate between two loops
- How to get posts published on the latest date?
- Page and post loop same template
- Getting blog pagination to work on page set as front page
- Display current post position in Elementor Posts widget
- WP_Query: Show 10 posts in date order, first three random
- WordPress Loop: How to display recent posts in multiple divs
- Need to know custom code to display random and most viewed posts in wordpress posts and pages
- How to display post list in a table layout (multiple queries in single loop)
- Not all posts showing in query
- how to handle the loop using filling bootstrap grid structure?
- Custom WP_Query not working correctly
- WP_Query of Category Not Showing First Post
- Display 3 posts with different HTML markup using a loop
- While loop in functions.php outputting the_title() of each post on frontpage
- Display specific posts based on an ID of another post
- SEARCH QUERIES – REVERSE OUTPUT
- Numbered Pagination Showing The Same Posts After Altering WP_Query
- query posts with selected post ids first
- show loop id post , only first id can read
- Double loop output
- WP_Query sort by meta_value_num or date
- Loop through all posts showing duplicates
- Wp_query loop is not working as it should
- Random order of the 5 most popular posts
- My custom query is displaying random posts in random order
- Get query result according to merged array
- WordPress loop uses unmodified posts array, why?
- How to make post button to a random post
- Advanced Post Display/Pagination/Ordering
- Why I obtain this WP_Query strange behavior trying to select posts having a specific tag?
- How to show the posts list into a static page? Problems to use the loop into a static page
- Adding a category at even positions on main loop with modified pagination
- Make assigning post to a specific category equivalent to assigning it to all categories
- Order by ‘s’ using WP_Query()
- How do I show the post title if an advanced custom field hasn’t been used?
- First post in loop displays twice
- posts_per_page – Repeats only first posts ‘post__in’ array
- How set featured posts using checkbox in post edit screen?
- WP_Query to work with custom view
- Order Posts by Alphabetical for Each Letter
- WP_Query only ONE post, won’t work
- Why does using WP_Query inside a shortcode in an elementor page cause the arguments for WP_Query to get malformed?
- Hiding posts in a list from specified categories
- How to get posts by multiple post slugs? [duplicate]
- Converting a dynamic piece of code using WordPress Loop into a static one using Post ID
- Inserting custom data to the_post() during loop
- Get Image tag from content of post
- How to add a class to each individual post?
- Why posts array is empty?
- ACF to select posts not displaying on blog page
- How to check in functions.php if there is data in a WP_Query?
- How can I insert a new markup element after 4 posts automatically? [closed]
- WordPress loop not working on static front page
- Get current taxonomy and display query accordingly
- Optimal WP Web App Backend for mobile app development
- Order posts alphabetically with numbers but some of the posts has numbers in the title
- How to get value of a selected option from select tag and use it in WP_query to filter posts?
- Counting Posts by Category
- show image gallery in archives or category page
- Page with Category Returning 1
- wp_query args with relation
- Show author bio box
- Use special template for the first post in the loop
- Creating Ordered Query using Meta_key
- Order by multiple meta keys on wordpress
- How to Include a common category in a custom Category Search
- Last three posts not being put in order by date. How to fix this?
- wp_query posts sorting doesn’t work
- When and how will php code in a user made WordPress page be executed?
- WP_Query post_tilte search in posts table