I found out what was causing this problem. I had a plugin installed called Simple Posts Generator which I used to generate 10 sample posts for testing purposes. Since I generated the articles all at the same time, the post_date value in the database was the same for each post, which confused WordPress as to what post should come first.
I fixed it by going into the database and manually changing the post_date values so they are all different, which solved the problem. Now all my posts are sorted correctly in chronological order.
Related Posts:
- how to display full post with pagination on home page
- page.php showing loop of posts and not page content
- Exclude category from
- Echo Text If User Is Logged in But NOT the Author of post
- how to handle the loop using filling bootstrap grid structure?
- Cant’ Grab WordPress Built-in Posts Through Loop
- I can’t find the relevant part of the loop in my theme file. How do I find the full content with “More…”
- Moved a website and excerpts don’t work for old posts
- Display post order ranking within wordpress loop
- Post are not showing up
- How to show the posts list into a static page? Problems to use the loop into a static page
- wordpress taxonomy results
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
- WordPress Ajax load doesn’t work
- Blog page not working
- WordPress Loop – Next 3 Posts
- Blog post per page setting conflicting with custom WP_Query?
- How to exclude latest x posts from a paginated query?
- Two loops, one AJAX loop, exclude posts in first loop from second loop, loops are in different files
- How to build a site with a map that shows where people offer and need help?
- problems with loading posts in a table-row
- How to verify wp user password by sql query in wp? [closed]
- Blog page pagination is not working after using the offset argument
- How to display the link (title) and thumbnail post?
- Underscores Theme Unit Testing – Catching Untitled Posts
- get_the_excerpt() is not working as expected – returns wrong text
- Posts will not display on page-mypage.php
- WP Query – Posts Per Page not working in combination with category__in
- How to use format post in a pertinent way
- More then one menu items are assigned with “current-menu-item” class
- How can i delay reading posing in 3days for not logined user?
- Pausing and Resuming WP_Query results
- Encountering “Wrong nonce. Action prohibitied.” when trying to alter User Role and unable to Post via WP Admin
- Pulling in post category and children within category
- Unable to restore from backup – how to obtain old blog posts?
- Post Loop Missing Most Recent Post
- Trying to use AngularJS with WordPress without any API
- How to : pagination in 3 different custom loops on the same page
- Pagination with an array of post objects?
- Sharing post from archive page (loop) doesn’t work
- Get Image tag from content of post
- Users problem (multi-author plus multisite)
- Start WP Pagination From Number 1 in URL
- Hightlight unread posts or new posts since last login
- Disable sticky option for specific categories
- How to add tags (custom taxonomy) to post class css?
- List authors with the last post title and order by last post date
- Listing Specific Categories from Current Post with Depth
- How to exclude visited posts from loop
- Use two different post_per_page limits with infinite scroll
- Highlight static blog page link in header
- wp_query random post
- How to make the first post in the loop be styled like a “new / featured” post?
- “Right Way” to make custom Loop respect reading settings inside admin panel?
- How to setup a query to output posts by groups of five?
- Only display sticky post or latest post in custom loop
- How to order posts in an arbitrary order?
- How to create a template for Pages?
- How do I stop the loop from repeating in my category template?
- get_the_category listing in hierarchial order
- How do I do a page break?
- How do I manage my users post before publish?
- How many posts does the loop return?
- Display Posts on Custom Page
- How to make a sum of all posts displayed in a loop
- Possible to alternate between two loops
- How do I retrieve a users’ last 5 posts?
- Gather posts into a cart/lightbox and share with another user
- Exclude current custom post on single post
- Wrong post title displayed from loop
- Get Value of Post before
- why does wordpress ignore the post args?
- Multiple Loops Breaking Pages
- add to end of post in the loop with plugin
- Block editors annoying warnings
- First x post with another template then the others
- Loop doesn’t show title of second post and posts thereafter
- Change all author links in Blog roll
- Grid post page on WordPress with Bootstrap, the_excerpt(); Problem
- Showing categories and subcategories with posts
- Second get_permalink inside loop points to wrong URL
- Get the amount of posts on a current page
- Loop parent terms {display posts} AND loop child terms {display posts}
- What does WordPress do if I save a post without content/title? [duplicate]
- How to add a class to each individual post?
- Assign published posts to another user automatically
- add bootstrap post slider with tabs
- How to add a class to edit_post_link?
- How to add add more properties to WP_Post object in search results loop
- Custom taxonomy archive page problem
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- Add field to user meta table in database when link is clicked
- Hide comments and posts posted by other user
- Admin – no Featured image choice in create new/page|post
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- Loop don’t work within single.php page
- Use Click Image to Play Youtube Video in a WordPress Loop
- Automatically create a default set of posts for each new registered user
- older blog posts not showing in new theme
- How to get posts published on the latest date?