Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

The post order is different for logged-in and non-logged-in users? [closed]

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:

  1. how to display full post with pagination on home page
  2. page.php showing loop of posts and not page content
  3. Exclude category from
  4. Echo Text If User Is Logged in But NOT the Author of post
  5. how to handle the loop using filling bootstrap grid structure?
  6. Cant’ Grab WordPress Built-in Posts Through Loop
  7. I can’t find the relevant part of the loop in my theme file. How do I find the full content with “More…”
  8. Moved a website and excerpts don’t work for old posts
  9. Display post order ranking within wordpress loop
  10. Post are not showing up
  11. How to show the posts list into a static page? Problems to use the loop into a static page
  12. wordpress taxonomy results
  13. How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
  14. WordPress Ajax load doesn’t work
  15. Blog page not working
  16. WordPress Loop – Next 3 Posts
  17. Blog post per page setting conflicting with custom WP_Query?
  18. How to exclude latest x posts from a paginated query?
  19. Two loops, one AJAX loop, exclude posts in first loop from second loop, loops are in different files
  20. How to build a site with a map that shows where people offer and need help?
  21. problems with loading posts in a table-row
  22. How to verify wp user password by sql query in wp? [closed]
  23. Blog page pagination is not working after using the offset argument
  24. How to display the link (title) and thumbnail post?
  25. Underscores Theme Unit Testing – Catching Untitled Posts
  26. get_the_excerpt() is not working as expected – returns wrong text
  27. Posts will not display on page-mypage.php
  28. WP Query – Posts Per Page not working in combination with category__in
  29. How to use format post in a pertinent way
  30. More then one menu items are assigned with “current-menu-item” class
  31. How can i delay reading posing in 3days for not logined user?
  32. Pausing and Resuming WP_Query results
  33. Encountering “Wrong nonce. Action prohibitied.” when trying to alter User Role and unable to Post via WP Admin
  34. Pulling in post category and children within category
  35. Unable to restore from backup – how to obtain old blog posts?
  36. Post Loop Missing Most Recent Post
  37. Trying to use AngularJS with WordPress without any API
  38. How to : pagination in 3 different custom loops on the same page
  39. Pagination with an array of post objects?
  40. Sharing post from archive page (loop) doesn’t work
  41. Get Image tag from content of post
  42. Users problem (multi-author plus multisite)
  43. Start WP Pagination From Number 1 in URL
  44. Hightlight unread posts or new posts since last login
  45. Disable sticky option for specific categories
  46. How to add tags (custom taxonomy) to post class css?
  47. List authors with the last post title and order by last post date
  48. Listing Specific Categories from Current Post with Depth
  49. How to exclude visited posts from loop
  50. Use two different post_per_page limits with infinite scroll
  51. Highlight static blog page link in header
  52. wp_query random post
  53. How to make the first post in the loop be styled like a “new / featured” post?
  54. “Right Way” to make custom Loop respect reading settings inside admin panel?
  55. How to setup a query to output posts by groups of five?
  56. Only display sticky post or latest post in custom loop
  57. How to order posts in an arbitrary order?
  58. How to create a template for Pages?
  59. How do I stop the loop from repeating in my category template?
  60. get_the_category listing in hierarchial order
  61. How do I do a page break?
  62. How do I manage my users post before publish?
  63. How many posts does the loop return?
  64. Display Posts on Custom Page
  65. How to make a sum of all posts displayed in a loop
  66. Possible to alternate between two loops
  67. How do I retrieve a users’ last 5 posts?
  68. Gather posts into a cart/lightbox and share with another user
  69. Exclude current custom post on single post
  70. Wrong post title displayed from loop
  71. Get Value of Post before
  72. why does wordpress ignore the post args?
  73. Multiple Loops Breaking Pages
  74. add to end of post in the loop with plugin
  75. Block editors annoying warnings
  76. First x post with another template then the others
  77. Loop doesn’t show title of second post and posts thereafter
  78. Change all author links in Blog roll
  79. Grid post page on WordPress with Bootstrap, the_excerpt(); Problem
  80. Showing categories and subcategories with posts
  81. Second get_permalink inside loop points to wrong URL
  82. Get the amount of posts on a current page
  83. Loop parent terms {display posts} AND loop child terms {display posts}
  84. What does WordPress do if I save a post without content/title? [duplicate]
  85. How to add a class to each individual post?
  86. Assign published posts to another user automatically
  87. add bootstrap post slider with tabs
  88. How to add a class to edit_post_link?
  89. How to add add more properties to WP_Post object in search results loop
  90. Custom taxonomy archive page problem
  91. What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
  92. Add field to user meta table in database when link is clicked
  93. Hide comments and posts posted by other user
  94. Admin – no Featured image choice in create new/page|post
  95. Is there a way to create a meta box that can be added multiple times to a post dynamically?
  96. Loop don’t work within single.php page
  97. Use Click Image to Play Youtube Video in a WordPress Loop
  98. Automatically create a default set of posts for each new registered user
  99. older blog posts not showing in new theme
  100. How to get posts published on the latest date?
Categories posts Tags login, loop, posts, theme-development, users
Custom Woocommerce Category view
Issues separating my Plugin pages into different files

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress