Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
25 Million+
Websites using our plugins
Years of WordPress experience
WordPress tutorials
by experts

How to Easily Re-Order Posts in WordPress (Step by Step)

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

Do you want to re-order blog posts in WordPress?

By default, WordPress displays your blog posts to visitors in reverse chronological order, so the newer posts appear first. However, sometimes you may want to change this order and prioritize different content instead.

In this article, we will share the easiest way to re-order WordPress blog posts, WooCommerce products, and custom post types.

How to Arrange WordPress Posts and Custom Posts Using Drag & Drop

Why Re-Order Blog Posts in WordPress?

Sometimes, there may be specific content that you want visitors to see first. For example, you may want to pin a big announcement blog to the front page, blog page, recent posts, or archive pages.

You may also need to manually re-order custom post types. For example, if you have created a WooCommerce store, then you might want to show your most popular products first or items that are on sale.

The problem is that WordPress normally shows your blog posts in reverse chronological order, with no easy way to move a post up or down.

With that in mind, let’s look at some workarounds and tricks that can help you easily re-order blog posts, WooCommerce products, and more. Simply use the quick links below to jump straight to the method you want to use:

Video Tutorial

Subscribe to WPBeginner

Method 1: Change the Post’s Published Date (Quick and Easy)

The easiest way to change the order of your posts is to simply change the published date.

By default, your WordPress site displays posts based on their publication date in reverse chronological order, so newer posts appear first.

Changing a post’s publish date will also change where it appears on your archive page, blog page, and other areas of your WordPress website.

Examples of published dates on blog posts

For example, if you wanted to show an older post first, then you could change its publication date to today. Similarly, if you wanted to move a post down the list, then you could simply make its publication date older.

To do this, just open the blog post in the WordPress content editor In the right sidebar, navigate to the ‘Post’ tab, and then click on the link next to ‘Publish.’

This opens a date and time popup where you can change the publication date.

Updating a blog post's publishing date in the block editor

Here, it’s important to choose a date that’s relevant to other posts. For example, if you want the post to appear before a blog that was published on the 8th of March, then you’d need to change its publish date to March 9th.

After changing the date and time, click on ‘Update’ to save your changes.

Method 2: Use Post Types Order Plugin (Best for Custom Post Types)

If you want to re-order posts without changing their publish dates, then we recommend using Post Types Order. This plugin allows you to organize blog posts, WooCommerce products, coupon codes, orders, custom post types, and more using drag and drop.

First, you need to install and activate the Post Types Order plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, head over to the Settings » Post Types Order page to configure the plugin’s settings.

Post Types Order settings

The ‘Show / Hide re-order interface’ section lists all the different content types that Post Types Order can reorganize.

You will need to make sure these dropdown menus are set to ‘Show’.

Reorganizing blog posts and custom post types in WordPress

After that, scroll to the ‘Archive Drag & Drop’ section.

For each content type that you want to reorganize, open its dropdown menu and select ‘Yes’.

Enabling the reordering feature for posts and custom post types in WordPress

When you are happy with how the plugin is set up, click on ‘Save Settings’.

Now, go to an area with the content you want to re-order, such as Posts » All Posts. You can then create a custom order by simply dragging and dropping the posts into new positions.

Re-Order blog posts by drag and drop

Method 3: Use Drag and Drop in WooCommerce (No Extra Plugins Required)

If you run an online store, then WooCommerce already supports drag and drop natively.

To reorder your products, you must go to the Products » All Products page.

Re-ordering WooCommerce products in WordPress

Here, click the ‘Sorting’ link at the top of the page.

You can then change the order of your products using drag and drop.

WooCommerce Natively Supports Drag and Drop

Happy with how the products are organized on your online marketplace or store?

Then, just click the ‘All’ link to stop sorting.

Stop reorganizing WooCommerce products

Method 4: Make WordPress Posts Sticky (Best for Highlighting Specific Posts)

Sometimes, you may want to highlight an important blog post, such as a big product announcement or a post about a giveaway or contest you are running.

WordPress allows you to make a post sticky so that it appears above all the other posts on your blog page, no matter what the publication date.

To do this, simply open the WordPress blog post that you want to highlight. In the ‘Post’ menu, check the box next to ‘Stick to the top of the blog.’

Making posts sticky in WordPress

After that, click on the ‘Update’ button to save your changes.

Now, if you visit your website, you will see the post pinned to the top. The sticky post may even be highlighted differently, depending on your WordPress theme.

For more detailed instructions, please see our guide on how to make sticky posts.

Method 5: Re-Order WordPress Posts Using Code (Advanced)

You may want to change how WordPress organizes all the posts across your website, including any posts you may publish in the future. The best way to do this is by adding custom code in WordPress.

Often, you will find guides with instructions to edit your theme’s functions.php file. However, this can cause all sorts of common WordPress errors or even break your site completely.

You’ll also lose the customization when you update your WordPress theme.

Instead, we recommend using the free WPCode plugin. WPCode is the best, most beginner-friendly code snippets plugin used by over 1 million WordPress websites. It allows you to easily add custom CSS, HTML, PHP, and more without putting your site at risk.

The first thing you need to do is install and activate WPCode. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, head over to Code Snippets » Add Snippet.

Adding a code snippet to WordPress

Here, simply hover your mouse over ‘Add Your Custom Code’.

When it appears, you need to click on ‘Use snippet’.

Reorganizing WordPress posts using WPCode

To start, type in a title for the custom code snippet. This can be anything that helps you identify the snippet in the WordPress dashboard.

After that, open the ‘Code Type’ dropdown and choose ‘PHP Snippet’.

Reorganizing WordPress posts using WPCode

In the code editor, add the following code snippet:

//function to modify default WordPress query
function wpb_custom_query( $query ) {
// Make sure we only modify the main query on the homepage  
    if( $query->is_main_query() && ! is_admin() && $query->is_home() ) {
        // Set parameters to modify the query
        $query->set( 'orderby', 'date' );
        $query->set( 'order', 'ASC' );
// Hook our custom query function to the pre_get_posts 
add_action( 'pre_get_posts', 'wpb_custom_query' );

This code simply modifies the orderby and order parameters in the default WordPress query.

In the snippet above, we are displaying posts in chronological order so the older posts appear first. However, the orderby parameter has many options, so you can order your posts in lots of different ways.

You can see a full list of options by visiting the WP Query code reference.

When you are happy with the snippet, you must scroll to the ‘Insertion’ section. WPCode can add your code to different locations, such as after every post, frontend only, or admin only.

We want to use the custom PHP code across our entire WordPress website, so click on ‘Auto Insert’ if it isn’t already selected.

Then, open the ‘Location’ dropdown and choose ‘Run Everywhere’.

Run code snippet across WordPress website

After that, you’re ready to scroll to the top of the screen and click on the ‘Inactive’ toggle so it changes to ‘Active.’

Finally, click on ‘Save Snippet’ to make the PHP snippet live.

Re-order posts in WordPress using WPCode

Now, if you visit your site, you will see that the posts have been reorganized based on your code.

We hope this article helped you learn easy ways to re-order blog posts in WordPress. You may also want to see our expert picks for the best WordPress SEO plugins or our guide on how to increase your blog traffic.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

51 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Mrteesurez says

    Nice one, you know what, this post reordering is useful to as I have an educational website where I showed blog post in order of publishing date with as lessons after each other. I found it difficult to manually edit the post to change the date, so this solves the problem. thanks.

  3. Jiří Vaněk says

    Is there some way, eg using CSS, to highlight a post that is pinned to the top of the blog like this? For example, a different background color of the block, etc.? The currently used template cannot do this.

  4. Olivier says

    For some reasons, the drag-and-drop options for Products did not work for me, and I did not want to install another plugin…

    So I found a workaround to display my products for one specific category, by using the default woocommerce shortcode with the order attribute.

    [products columns=”3″ category=”some-category-goes-here” order=”ASC”]

    Now my producs for this category are display from first to last (which happened to be in my case with ascending price, which is what I wanted), and from not last to first.

    Somehow a 6th method, to update your post with. ;-)

    Hope this helps.

    • WPBeginner Support says

      The simplest method from this that would affect your blog page would be to change the published date for your blog posts :)


  5. Jeff Moyer says

    Wow fantastic article thank you, I was aware of a couple of these options but not all thank you! Probably going to avoid the coding option but we’ll see lol.

  6. Brian says

    I have the post reorder plugin, but do you know if there’s a plugin that allows the write to choose the post priority while in edit? For example, a dropdown that allows the user to select where on the page the post should appear (first, fifth, 10th, etc.).

  7. mark says

    First of all thank you for putting this together, your post are usually very helpful.

    For some reason the theme i’m using has the blog posts order with oldest post on top. I would like to see the newest on top.

    I’m running out of ideas. Any idea what to look for (and where) to get my posts sorted with the newest post on top?

    • WPBeginner Support says

      You would want to reach out to the support for your specific theme for if this is a theme setting.


  8. Tom Grisak says

    Thanks for the help. I didn’t know a plugin could do that for me. I thought I’d have to go to every post and change the publish date. But I have a question, it sounds like you can put two stickies at the top. Are those also sorted by date?

  9. Rico says

    What I would like is for the sticky post to be at the top and the rest of the posts to follow the default (reverse chronological) order below it. I’ve used the sticky option but it doesn’t always put the sticky post at the top. It’s sticky on the blog page but at the bottom of the list in the sidebar for Recent Blog Posts. I’m using the Alizee template. Is there something I can do with CSS or another method to achieve this for both areas?

  10. dirkthewebphoenix says

    What about a merely temporary reversal of order?

    Example: As a visitor you have a special interest making you want to start with the oldest posts in your search, or as the site author you want to create a search URL for your menu that will present a popular post series in chronological order.

    Is there any search term one could enter to reverse the order or any modification of the search URL (get request) that would do this on this one-time basis?

    • WPBeginner Support says

      For that, you would need to look into a plugin for your search to allow that type of one time re-order


  11. Phil Smart says

    When ordering and displaying blog posts, my sponsor wants them ordered by the date of the event, which is the only reliable date. I am asking how to make that happen.

    My sponsor considers that altering the date published just to alter the order means that no-one can count on that date to know which version of posts they are looking at.

    How can we add a field to capture event-date?

  12. Michael Walther says

    Unfortunately, drag-and-drop type plugins like ‘Post Types Order’ are completely useless if you have more posts in your blog than fit on one screen.

    For instance, I have > 100 posts in my blog. If I want so drag, say, post #96 all the way up to position #3, then I am out of luck because #5 and #96 do not fit on the same screen, which makes drag and drop impossible.

    • WPBeginner Support says

      If you go to your screen options in the top right of your All Posts page and you should be able to increase the number of posts to display on the page :)


  13. Jo Wagner says

    Hi there,

    I like this plugin. But find it limiting to only post types and not Pages as well. Simple Page Order works well for pages, but then you have two plugins again, which is not ideal. Is there no plugin to be able to do both?

    Please let me know.

  14. Abe says

    Hi there, I’m using the free blog, and when I clicked on plug-ins, it’s asking me to upgrade. Is there another way of installing the re-order word press posts? Any tips would be great. I was planning on including my previously done writings, which weren’t done in this blog, but in review sites like Trip Advisor or Zomato, but the tendency of the site is that my latest posts will be the ones posted on top, so the chronological thing works only if I write my posts also based on timing of the visit, which is not feasible of how I’m going to populate my blog post.

  15. Donna L Lovette says

    I downloaded the post oder plugin and I worked perfectly. Now my blog looks like I want it to. Thanks

  16. Sherry says

    Hi – I installed the post order plug in and reordered my posts but it didn’t change the order on the site. what am I doing incorrectly?

  17. Lee Grainger says

    I have uploaded this plugin, dragged and dropped my posts in the order I want them in, but they don’t appear to have changed.
    I have several blog post categories on different pages, is it possible this is the reason?

  18. Laura Sage says

    I’ve used this plugin many times. Very useful. Thank you. HOWEVER, I just created a custom post type, and the re-oder option isn’t showing up for it. What do I need to do in order for it to be added to my custom post type as well? The custom post type doesn’t show up in Settings.

  19. Neooth says

    This plugin is amazing. But I have a question: On my front page, I’ve got a combined archive of multiple post types. Whenever I change the order of the posts/custom posts, oddly, an old post from a custom post type springs to the top.

    I am guessing this happens because when I use the plugin, the rearrangement is done according to the ID, and ID’s from all custom post types start vying with each other.

    Is there a way to prevent an old custom post type with an ID of 0 from appearing near the top?

  20. Ankur says

    Useful plugin, might use it on my site.
    Also, I like new layout of the site. Is it some customized genesis child theme of some completely different customized theme for your site ?

  21. bill says

    Wow! Wish I would’ve known about this plugin three months ago. When working on a client’s site, I had to re-date over three hundred posts; not a fun gig :) Thanks for the article.

  22. Kathy Drewien says

    I noticed the plugin shows compatibility only up to WP 3.2.2, yet it was updated 11 days ago. Any known issues with 3.3 and higher?

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.