Skip to content
Menu
Quedank: Simplify
  • Home
  • Recent Posts
  • Computer Science
    • Servers and Hosting
    • Programming and Coding
    • Web
  • Digital Marketing
  • Multimedia
Quedank: Simplify
October 12, 2022October 12, 2022

Solved: Changing the ‘Publish Date’ does not update post order in WordPress

-Advertisement-

Changing the publish date of a post in WordPress should also automatically change the post’s order in the loop. Depending if the post loop is set as Ascending or Descending, the post should show accordingly by its new date. But if it’s not working, try these steps to fix the problem.

1.) Check the code.

Make sure that the arguments for the loop query has the properties “orderby” and “order” included. The Orderby property can be set to “date” so that the loop will use the publish date as the basis for order while the Order property can be set to either “ASC” for ascending or “DESC” for descending.

The sample code below should show a WordPress post loop query that has the arguments that will show posts by descending dates.

<?php 
	$args = array(  
		'post_type' => 'post',
		'post_status' => array( 'publish', 'private' ),
		'orderby' => 'date', 
		'order' => 'DESC',
		'posts_per_page' => 10
	); 
	$the_loop = new WP_Query($args); 
?>

2.) Clear all cache.

Some caching plugins need their caches to be purged after every change done. You may look for any installed caching plugins such as WP Super Cache or Nitropack and delete all their caches. You may also try deleting you browser’s cache before refreshing the page to check if it worked.

3.) Check settings of post re-ordering plugins.

You might have also installed a post re-ordering plugin such as Post Types Order. These kinds of plugin override the defaulted settings of loops and may seem that you have a problem with the order.

Below is what the settings of the plugin Post Type Order should be for your changes to work. Uncheck “Admin Sort” and click the Save Settings button.

“Post Type Order” plugin settings

Check for any similar plugins that can alter the post order and look into its settings.

-Advertisement-

Search A Topic

Recent Posts

  • Why Use Python Over R. And Why You Might Not Like R At All.
  • How To Fix “Warning: Creating default object from empty value in…” In WordPress
  • Fix WordPress “Warning: Cannot modify header information – headers already sent by…”
  • Solved: Changing the ‘Publish Date’ does not update post order in WordPress
  • How To Trim Or Shorten The Blank Ending Of The Timeline In DaVinci Resolve
  • Easiest way to redirect your visitors from your old WordPress website to your new. By using 301 Redirect plugins
  • How to export WordPress posts WITH their images and then import them to another website
  • Solved: “The server cannot process the image.” Error in WordPress When Uploading An Image
  • Reaching Out To Influencers For Brand Awareness, Plus A Sample Message Template
  • 3-Step Template To Create A Case Study That Closes Your Leads
©2023 Quedank: Simplify | All Rights Reserved | Privacy Policy
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Cookie settingsACCEPT
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT