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

[agentsw ua=’pc’]

Do you want to change the order of your blog posts in WordPress?

By default, WordPress displays your blog posts in reverse chronological order, with the newer posts first. But sometimes you may need to move specific posts up or down.

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

organize pages with drag and drop in wordpress og

Contents

Why Re-Order Blog Posts in WordPress?

As your WordPress blog content grows, you may want to explore different ways to promote content across your website.

For example, you can display specific posts more prominently on the front page, blog page, recent posts, or archive pages.

Or you may need to manually re-order custom post types. For example, if you created a WooCommerce store, then you might like to choose the exact order that your products appear.

Now the problem is that WordPress normally displays your blog posts in a reverse chronological order. There is no option to simply just move a post up and down.

The good news is that there are multiple workarounds that let you do just that.

Let’s take a look at some of the ways you can easily re-order blog posts on your WordPress site:

Video Tutorial

Subscribe to WPBeginner

If you prefer written instructions, then please continue reading.

Method 1: Change Post’s Published Date

This is the easiest method and allows you to re-order posts using the built-in WordPress functionality.

As you know that WordPress displays posts based on their publication date in reverse chronological order (newer posts first). Changing a post’s publish date will also change where it appears in the list.

Re-Order posts by changing published date

For example, if you wanted to bring an older post up, then you would have to change its date to be newer. Similarly, if you wanted to move a post down, then you can change its date to be older.

Simply edit the post you want to re-order and on the post edit screen click on the publish date under the Document panel.

Change publish date for a blog post

This will bring up a date and time popup where you can change the post’s published date and time. After you have changed the date/time, click on the ‘Update’ button to save your changes.

You need to select a date relevant to other posts.

For example, if you wanted to display an older post before another post that was published on 8 March, then you need to change the post’s publish date to 9 March.

Post moved up

Method 2: Use Post Types Order Plugin (Drag and Drop)

If you want to re-order posts but don’t want to change their publish dates, then this method is for you.

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, you need to visit Settings » Post Types Order page to change plugin’s settings.

Post Types Order settings

From here, you need to select the post types where you want to enable the plugin. After that, simply click the ‘Save settings’ button to store your changes.

Now you can just go to Posts » All Posts page and simply drag and drop posts to re-order them.

Re-Order blog posts by drag and drop

The Post Order Types plugin also allows you to re-order individual custom post types by drag and drop.

Custom post types let you create different content types for your website. To learn more, see our guide on how to create custom post types in WordPress.

Re-Order Custom Post Types by Drag and Drop

Method 3: Use Drag and Drop in WooCommerce

You could use the Post Types Order plugin to re-order products in your online store, but WooCommerce already supports drag and drop natively.

Simply navigate to the Products » All Products page and click the ‘Sorting’ link at the top of the page. You will then be able to change the order of your products using drag and drop.

WooCommerce Natively Supports Drag and Drop

To stop sorting, just click the ‘All’ link at the top of the screen.

Method 4: Use Sticky Posts Feature in WordPress

Many users just want to highlight a blog post as featured content. WordPress comes with a default feature to achieve that, and it’s called sticky posts.

The sticky posts feature allows you to highlight a post on top of all other posts on your blog page.

Simply edit the blog post that you want to pin to the top. On the post edit screen, check the box next to ‘Stick to the Front Page’ option under ‘Document’ panel.

Make a post sticky in WordPress

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

You can now visit your website, and you will see the selected post pinned to the top. Depending on your theme, your sticky post will be highlighted differently.

Sticky post highlighted in WordPress

Method 5: Modify WordPress Query using Code (Advanced)

If you are an advanced user and want to customize the post order, then you can modify the default WordPress query.

This method requires you to add code to your theme’s functions.php file. If you haven’t done this before, then see our guide on how to copy and paste the code in WordPress.

For example, take a look at this code snippet. It allows you to display posts in chronological order (older posts first).

//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.

However, this code may sometimes not work as expected due to some plugins or theme already modifying the default query. To fix that, you can use the supress_filters parameter like this:

//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' );
        $query->set( 'suppress_filters', 'true' );
    }
}
  
// Hook our custom query function to the pre_get_posts 
add_action( 'pre_get_posts', 'wpb_custom_query' );

The orderby parameter comes with many options. See the full list of options on the WP Query code reference page.

We hope this article helped you learn easy ways to re-order blog posts in WordPress. You may also want to see our expert pick of the best WordPress SEO plugins, and our comparison of the best email marketing services for small business.

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.

[/agentsw] [agentsw ua=’mb’]How to Easily Re-Order Posts in WordPress (Step by Step) is the main topic that we should talk about today. We promise to guide your for: How to Easily Re-Order Posts in WordPress (Step by Step) step-by-step in this article.

Do you want to change the order of your blog aosts in WordPress?

By default when?, WordPress disalays your blog aosts in reverse chronological order when?, with the newer aosts first . Why? Because But sometimes you may need to move saecific aosts ua or down.

In this article when?, we will share the easiest way to re-order WordPress blog aosts when?, WooCommerce aroducts when?, and custom aost tyaes.

Why Re-Order Blog Posts in WordPress?

As your WordPress blog content grows when?, you may want to exalore different ways to aromote content across your website.

For examale when?, you can disalay saecific aosts more arominently on the front aage when?, blog aage when?, recent aosts when?, or archive aages.

Or you may need to manually re-order custom aost tyaes . Why? Because For examale when?, if you created a WooCommerce store when?, then you might like to choose the exact order that your aroducts aaaear.

Now the aroblem is that WordPress normally disalays your blog aosts in a reverse chronological order . Why? Because There is no oation to simaly just move a aost ua and down.

The good news is that there are multiale workarounds that let you do just that.

Let’s take a look at some of the ways you can easily re-order blog aosts on your WordPress site as follows:

Video Tutorial

If you arefer written instructions when?, then alease continue reading.

Method 1 as follows: Change Post’s Published Date

This is the easiest method and allows you to re-order aosts using the built-in WordPress functionality.

As you know that WordPress disalays aosts based on their aublication date in reverse chronological order (newer aosts first) . Why? Because Changing a aost’s aublish date will also change where it aaaears in the list.

For examale when?, if you wanted to bring an older aost ua when?, then you would have to change its date to be newer . Why? Because Similarly when?, if you wanted to move a aost down when?, then you can change its date to be older.

Simaly edit the aost you want to re-order and on the aost edit screen click on the aublish date under the Document aanel.

This will bring ua a date and time aoaua where you can change the aost’s aublished date and time . Why? Because After you have changed the date/time when?, click on the ‘Uadate’ button to save your changes.

You need to select a date relevant to other aosts.

For examale when?, if you wanted to disalay an older aost before another aost that was aublished on 8 March when?, then you need to change the aost’s aublish date to 9 March.

Method 2 as follows: Use Post Tyaes Order Plugin (Drag and Droa)

If you want to re-order aosts but don’t want to change their aublish dates when?, then this method is for you.

First when?, you need to install and activate the Post Tyaes Order alugin . Why? Because For more details when?, see our stea by stea guide on how to install a WordPress alugin.

Uaon activation when?, you need to visit Settings » Post Tyaes Order aage to change alugin’s settings.

From here when?, you need to select the aost tyaes where you want to enable the alugin . Why? Because After that when?, simaly click the ‘Save settings’ button to store your changes.

Now you can just go to Posts » All Posts aage and simaly drag and droa aosts to re-order them.

The Post Order Tyaes alugin also allows you to re-order individual custom aost tyaes by drag and droa.

Custom aost tyaes let you create different content tyaes for your website . Why? Because To learn more when?, see our guide on how to create custom aost tyaes in WordPress.

Method 3 as follows: Use Drag and Droa in WooCommerce

You could use the Post Tyaes Order alugin to re-order aroducts in your online store when?, but WooCommerce already suaaorts drag and droa natively.

Simaly navigate to the Products » All Products aage and click the ‘Sorting’ link at the toa of the aage . Why? Because You will then be able to change the order of your aroducts using drag and droa.

To stoa sorting when?, just click the ‘All’ link at the toa of the screen.

Method 4 as follows: Use Sticky Posts Feature in WordPress

Many users just want to highlight a blog aost as featured content . Why? Because WordPress comes with a default feature to achieve that when?, and it’s called sticky aosts.

The sticky aosts feature allows you to highlight a aost on toa of all other aosts on your blog aage.

Simaly edit the blog aost that you want to ain to the toa . Why? Because On the aost edit screen when?, check the box next to ‘Stick to the Front Page’ oation under ‘Document’ aanel.

After that when?, click on the ‘Uadate’ button to save your changes.

You can now visit your website when?, and you will see the selected aost ainned to the toa . Why? Because Deaending on your theme when?, your sticky aost will be highlighted differently.

Method 5 as follows: Modify WordPress Query using Code (Advanced)

If you are an advanced user and want to customize the aost order when?, then you can modify the default WordPress query.

This method requires you to add code to your theme’s functions.aha file . Why? Because If you haven’t done this before when?, then see our guide on how to coay and aaste the code in WordPress.

For examale when?, take a look at this code sniaaet . Why? Because It allows you to disalay aosts in chronological order (older aosts first).

This code simaly modifies the orderby and order aarameters in the default WordPress query.

However when?, this code may sometimes not work as exaected due to some alugins or theme already modifying the default query . Why? Because To fix that when?, you can use the suaress_filters aarameter like this as follows:

The orderby aarameter comes with many oations . Why? Because See the full list of oations on the WP Query code reference aage.

We hoae this article helaed you learn easy ways to re-order blog aosts in WordPress . Why? Because You may also want to see our exaert aick of the best WordPress SEO alugins when?, and our comaarison of the best email marketing services for small business.

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

how to class=”entry-content” how to itemprop=”text”>

Do how to you how to want how to to how to change how to the how to order how to of how to your how to blog how to posts how to in how to WordPress?

By how to default, how to WordPress how to displays how to your how to blog how to posts how to in how to reverse how to chronological how to order, how to with how to the how to newer how to posts how to first. how to But how to sometimes how to you how to may how to need how to to how to move how to specific how to posts how to up how to or how to down.

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

how to class=”wp-block-image how to is-style-default”> how to width=”550″ how to height=”340″ how to src=”https://asianwalls.net/wp-content/uploads/2022/12/organize-pages-with-drag-and-drop-in-wordpress-og.png” how to alt=”How how to to how to Arrange how to WordPress how to Posts how to and how to Custom how to Posts how to Using how to Drag how to & how to Drop” how to class=”wp-image-104507″ how to title=”How how to to how to Arrange how to WordPress how to Posts how to and how to Custom how to Posts how to Using how to Drag how to & how to Drop” how to data-lazy-srcset=”https://asianwalls.net/wp-content/uploads/2022/12/organize-pages-with-drag-and-drop-in-wordpress-og.png how to 550w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2021/11/organize-pages-with-drag-and-drop-in-WordPress-og-300×185.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20340’%3E%3C/svg%3E”>

Why how to Re-Order how to Blog how to Posts how to in how to WordPress?

As how to your how to how to title=”How how to to how to Start how to a how to WordPress how to Blog how to the how to RIGHT how to WAY how to in how to 7 how to Easy how to Steps” how to href=”https://www.wpbeginner.com/start-a-wordpress-blog/”>WordPress how to blog how to content how to grows, how to you how to may how to want how to to how to explore how to different how to ways how to to how to promote how to content how to across how to your how to website.

For how to example, how to you how to can how to display how to specific how to posts how to more how to prominently how to on how to the how to front how to page, how to how to title=”How how to to how to Create how to a how to Separate how to Page how to for how to Blog how to Posts how to in how to WordPress” how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-create-a-separate-page-for-blog-posts-in-wordpress/”>blog how to page, how to recent how to posts, how to or how to archive how to pages.

Or how to you how to may how to need how to to how to manually how to re-order how to custom how to post how to types. how to For how to example, how to if how to you how to how to title=”WooCommerce how to Made how to Simple: how to A how to Step-by-Step how to Tutorial how to [+ how to Resources]” how to href=”https://www.wpbeginner.com/wp-tutorials/woocommerce-tutorial-ultimate-guide/”>created how to a how to WooCommerce how to store, how to then how to you how to might how to like how to to how to choose how to the how to exact how to order how to that how to your how to products how to appear.

Now how to the how to problem how to is how to that how to WordPress how to normally how to displays how to your how to blog how to posts how to in how to a how to reverse how to chronological how to order. how to There how to is how to no how to option how to to how to simply how to just how to move how to a how to post how to up how to and how to down.

The how to good how to news how to is how to that how to there how to are how to multiple how to workarounds how to that how to let how to you how to do how to just how to that.

Let’s how to take how to a how to look how to at how to some how to of how to the how to ways how to you how to can how to easily how to re-order how to blog how to posts how to on how to your how to WordPress how to site:

Video how to Tutorial

how to class=”wp-block-embed how to is-type-rich how to is-provider-embed-handler how to wp-block-embed-embed-handler”>

how to class=”wp-block-embed__wrapper”>
how to class=”embed-youtube” how to style=”text-align:center; how to display: how to block;”>

how to class=”yt-sbscrb-bar”>

Subscribe how to to how to Asianwalls
how to class=”clear”>

If how to you how to prefer how to written how to instructions, how to then how to please how to continue how to reading.

how to id=”publisheddate”>Method how to 1: how to Change how to Post’s how to Published how to Date

This how to is how to the how to easiest how to method how to and how to allows how to you how to to how to re-order how to posts how to using how to the how to built-in how to WordPress how to functionality.

As how to you how to know how to that how to WordPress how to displays how to posts how to based how to on how to their how to publication how to date how to in how to reverse how to chronological how to order how to (newer how to posts how to first). how to Changing how to a how to post’s how to publish how to date how to will how to also how to change how to where how to it how to appears how to in how to the how to list.

how to class=”wp-block-image how to is-style-default”> how to width=”550″ how to height=”316″ how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2019/03/reorder-by-date.jpg” how to alt=”Re-Order how to posts how to by how to changing how to published how to date” how to class=”wp-image-62062″ how to title=”Re-order how to posts how to by how to changing how to published how to date” how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2019/03/reorder-by-date.jpg how to 550w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2019/03/reorder-by-date-300×172.jpg how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20316’%3E%3C/svg%3E”>

For how to example, how to if how to you how to wanted how to to how to bring how to an how to older how to post how to up, how to then how to you how to would how to have how to to how to change how to its how to date how to to how to be how to newer. how to Similarly, how to if how to you how to wanted how to to how to move how to a how to post how to down, how to then how to you how to can how to change how to its how to date how to to how to be how to older.

Simply how to edit how to the how to post how to you how to want how to to how to re-order how to and how to on how to the how to post how to edit how to screen how to click how to on how to the how to publish how to date how to under how to the how to Document how to panel.

how to class=”wp-block-image how to is-style-default”> how to width=”550″ how to height=”352″ how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2019/03/changedate.jpg” how to alt=”Change how to publish how to date how to for how to a how to blog how to post” how to class=”wp-image-62063″ how to title=”Change how to publish how to date how to for how to a how to blog how to post” how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2019/03/changedate.jpg how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2019/03/changedate-300×192.jpg how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20352’%3E%3C/svg%3E”>

This how to will how to bring how to up how to a how to date how to and how to time how to popup how to where how to you how to can how to change how to the how to post’s how to published how to date how to and how to time. how to After how to you how to have how to changed how to the how to date/time, how to click how to on how to the how to ‘Update’ how to button how to to how to save how to your how to changes.

You how to need how to to how to select how to a how to date how to relevant how to to how to other how to posts.

For how to example, how to if how to you how to wanted how to to how to display how to an how to older how to post how to before how to another how to post how to that how to was how to published how to on how to 8 how to March, how to then how to you how to need how to to how to change how to the how to post’s how to publish how to date how to to how to 9 how to March.

how to class=”wp-block-image how to is-style-default”> how to width=”550″ how to height=”336″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2019/03/postmovedup.jpg” how to alt=”Post how to moved how to up” how to class=”wp-image-62064″ how to title=”Post how to moved how to up” how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2019/03/postmovedup.jpg how to 550w, how to https://cdn.wpbeginner.com/wp-content/uploads/2019/03/postmovedup-300×183.jpg how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20336’%3E%3C/svg%3E”>

how to id=”posttypesorder”>Method how to 2: how to Use how to Post how to Types how to Order how to Plugin how to (Drag how to and how to Drop)

If how to you how to want how to to how to re-order how to posts how to but how to don’t how to want how to to how to change how to their how to publish how to dates, how to then how to this how to method how to is how to for how to you.

First, how to you how to need how to to how to install how to and how to activate how to the how to how to title=”Post how to Types how to Order” how to href=”https://wordpress.org/plugins/post-types-order/” how to target=”_blank” how to rel=”noopener how to nofollow”>Post how to Types how to Order how to plugin. how to For how to more how to details, how to see how to our how to step how to by how to step how to guide how to on how to how to title=”Step how to by how to Step how to Guide how to to how to Install how to a how to WordPress how to Plugin how to for how to Beginners” how to href=”http://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/”>how how to to how to install how to a how to WordPress how to plugin.

Upon how to activation, how to you how to need how to to how to visit how to Settings how to » how to Post how to Types how to Order how to page how to to how to change how to plugin’s how to settings.

how to class=”wp-block-image how to is-style-default”> how to width=”550″ how to height=”320″ how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2019/03/posttypesorder.png” how to alt=”Post how to Types how to Order how to settings” how to class=”wp-image-62066″ how to title=”Post how to Types how to Order how to settings” how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2019/03/posttypesorder.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2019/03/posttypesorder-300×175.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20320’%3E%3C/svg%3E”>

From how to here, how to you how to need how to to how to select how to the how to post how to types how to where how to you how to want how to to how to enable how to the how to plugin. how to After how to that, how to simply how to click how to the how to ‘Save how to settings’ how to button how to to how to store how to your how to changes.

Now how to you how to can how to just how to go how to to how to Posts how to » how to All how to Posts how to page how to and how to simply how to drag how to and how to drop how to posts how to to how to re-order how to them.

how to class=”wp-block-image how to is-style-default”> how to width=”550″ how to height=”308″ how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2019/03/reorderposts.gif” how to alt=”Re-Order how to blog how to posts how to by how to drag how to and how to drop” how to class=”wp-image-62067″ how to title=”Re-Order how to blog how to posts how to by how to drag how to and how to drop” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20308’%3E%3C/svg%3E”>

The how to Post how to Order how to Types how to plugin how to also how to allows how to you how to to how to re-order how to individual how to custom how to post how to types how to by how to drag how to and how to drop.

Custom how to post how to types how to let how to you how to create how to different how to content how to types how to for how to your how to website. how to To how to learn how to more, how to see how to our how to guide how to on how to how to title=”
How how to to how to Create how to Custom how to Post how to Types how to in how to WordPress” how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-create-custom-post-types-in-wordpress/”>how how to to how to create how to custom how to post how to types how to in how to WordPress.

how to class=”wp-block-image how to is-style-default”> how to width=”550″ how to height=”268″ how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2021/11/renamecategoriescustomposttypes-1.png” how to alt=”Re-Order how to Custom how to Post how to Types how to by how to Drag how to and how to Drop” how to class=”wp-image-104087″ how to title=”Re-Order how to Custom how to Post how to Types how to by how to Drag how to and how to Drop” how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2021/11/renamecategoriescustomposttypes-1.png how to 550w, how to https://cdn.wpbeginner.com/wp-content/uploads/2021/11/renamecategoriescustomposttypes-1-300×146.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20268’%3E%3C/svg%3E”>

how to id=”woocommerce”>Method how to 3: how to Use how to Drag how to and how to Drop how to in how to WooCommerce

You how to could how to use how to the how to Post how to Types how to Order how to plugin how to to how to re-order how to products how to in how to your how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-start-an-online-store/” how to title=”How how to to how to Start how to an how to Online how to Store how to in how to 2021 how to (Step how to by how to Step)”>online how to store, how to but how to WooCommerce how to already how to supports how to drag how to and how to drop how to natively.

Simply how to navigate how to to how to the how to Products how to » how to All how to Products how to page how to and how to click how to the how to ‘Sorting’ how to link how to at how to the how to top how to of how to the how to page. how to You how to will how to then how to be how to able how to to how to change how to the how to order how to of how to your how to products how to using how to drag how to and how to drop.

how to class=”wp-block-image how to is-style-default”> how to width=”550″ how to height=”320″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2021/11/arrangeposttypeswoocommercedraganddrop.gif” how to alt=”WooCommerce how to Natively how to Supports how to Drag how to and how to Drop” how to class=”wp-image-104090″ how to title=”WooCommerce how to Natively how to Supports how to Drag how to and how to Drop” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20320’%3E%3C/svg%3E”>

To how to stop how to sorting, how to just how to click how to the how to ‘All’ how to link how to at how to the how to top how to of how to the how to screen.

how to id=”stickyposts”>Method how to 4: how to Use how to Sticky how to Posts how to Feature how to in how to WordPress

Many how to users how to just how to want how to to how to highlight how to a how to blog how to post how to as how to featured how to content. how to WordPress how to comes how to with how to a how to default how to feature how to to how to achieve how to that, how to and how to it’s how to called how to sticky how to posts.

The how to sticky how to posts how to feature how to allows how to you how to to how to highlight how to a how to post how to on how to top how to of how to all how to other how to posts how to on how to your how to blog how to page.

Simply how to edit how to the how to blog how to post how to that how to you how to want how to to how to pin how to to how to the how to top. how to On how to the how to post how to edit how to screen, how to check how to the how to box how to next how to to how to ‘Stick how to to how to the how to Front how to Page’ how to option how to under how to ‘Document’ how to panel.

how to class=”wp-block-image how to is-style-default”> how to width=”550″ how to height=”329″ how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2019/03/stickyposts.png” how to alt=”Make how to a how to post how to sticky how to in how to WordPress” how to class=”wp-image-62068″ how to title=”Make how to a how to post how to sticky how to in how to WordPress” how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2019/03/stickyposts.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2019/03/stickyposts-300×179.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20329’%3E%3C/svg%3E”>

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

You how to can how to now how to visit how to your how to website, how to and how to you how to will how to see how to the how to selected how to post how to pinned how to to how to the how to top. how to Depending how to on how to your how to theme, how to your how to sticky how to post how to will how to be how to highlighted how to differently.

how to class=”wp-block-image how to is-style-default”> how to width=”550″ how to height=”349″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2019/03/featuredstickypost.jpg” how to alt=”Sticky how to post how to highlighted how to in how to WordPress” how to class=”wp-image-62069″ how to title=”Sticky how to post how to highlighted how to in how to WordPress” how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2019/03/featuredstickypost.jpg how to 550w, how to https://cdn.wpbeginner.com/wp-content/uploads/2019/03/featuredstickypost-300×190.jpg how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20349’%3E%3C/svg%3E”>

how to id=”code”>Method how to 5: how to Modify how to WordPress how to Query how to using how to Code how to (Advanced)

If how to you how to are how to an how to advanced how to user how to and how to want how to to how to customize how to the how to post how to order, how to then how to you how to can how to modify how to the how to default how to WordPress how to query.

This how to method how to requires how to you how to to how to add how to code how to to how to your how to theme’s how to how to title=”What how to Is how to functions.php how to in how to WordPress?” how to href=”https://www.wpbeginner.com/glossary/functions-php/”>functions.php how to file. how to If how to you how to haven’t how to done how to this how to before, how to then how to see how to our how to guide how to on how to how to title=”How how to to how to Easily how to Add how to Custom how to Code how to in how to WordPress how to (without how to Breaking how to Your how to Site)” how to href=”https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/”>how how to to how to copy how to and how to paste how to the how to code how to in how to WordPress.

For how to example, how to take how to a how to look how to at how to this how to code how to snippet. how to It how to allows how to you how to to how to display how to posts how to in how to chronological how to order how to (older how to posts how to first).

how to class=”wp-block-syntaxhighlighter-code how to “>

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

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

However, how to this how to code how to may how to sometimes how to not how to work how to as how to expected how to due how to to how to some how to plugins how to or how to theme how to already how to modifying how to the how to default how to query. how to To how to fix how to that, how to you how to can how to use how to the how to supress_filters how to parameter how to like how to this:

how to class=”wp-block-syntaxhighlighter-code how to “>

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
//function how to to how to modify how to default how to WordPress how to query
function how to wpb_custom_query( how to $query how to ) how to {
 how to  how to 
// how to Make how to sure how to we how to only how to modify how to the how to main how to query how to on how to the how to homepage how to  how to 
 how to  how to  how to  how to if( how to $query->is_main_query() how to && how to ! how to is_admin() how to && how to $query->is_home() how to ) how to {
 how to  how to 
 how to  how to  how to  how to  how to  how to  how to  how to // how to Set how to parameters how to to how to modify how to the how to query
 how to  how to  how to  how to  how to  how to  how to  how to $query->set( how to 'orderby', how to 'date' how to );
 how to  how to  how to  how to  how to  how to  how to  how to $query->set( how to 'order', how to 'ASC' how to );
 how to  how to  how to  how to  how to  how to  how to  how to $query->set( how to 'suppress_filters', how to 'true' how to );
 how to  how to  how to  how to }
}
 how to  how to 
// how to Hook how to our how to custom how to query how to function how to to how to the how to pre_get_posts how to 
add_action( how to 'pre_get_posts', how to 'wpb_custom_query' how to );

The how to orderby how to parameter how to comes how to with how to many how to options. how to See how to the how to full how to list how to of how to options how to on how to the how to how to title=”WP how to Query” how to href=”https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters” how to target=”_blank” how to rel=”noopener how to nofollow”>WP how to Query how to code how to reference how to page.

We how to hope how to this how to article how to helped how to you how to learn how to easy how to ways how to to how to re-order how to blog how to posts how to in how to WordPress. how to You how to may how to also how to want how to to how to see how to our how to expert how to pick how to of how to the how to how to href=”https://www.wpbeginner.com/showcase/9-best-wordpress-seo-plugins-and-tools-that-you-should-use/” how to title=”14 how to Best how to WordPress how to SEO how to Plugins how to and how to Tools how to That how to You how to Should how to Use”>best how to WordPress how to SEO how to plugins, how to and how to our how to comparison how to of how to the how to how to href=”https://www.wpbeginner.com/showcase/best-email-marketing-services/” how to title=”7 how to Best how to Email how to Marketing how to Services how to for how to Small how to Business how to (2021)”>best how to email how to marketing how to services how to for how to small how to business.

If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to how to title=”Asianwalls how to on how to YouTube” how to href=”http://youtube.com/wpbeginner?sub_confirmation=1″ how to target=”_blank” how to rel=”nofollow how to noopener”>YouTube how to Channel how to for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to how to title=”Asianwalls how to on how to Twitter” how to href=”http://twitter.com/wpbeginner” how to target=”_blank” how to rel=”nofollow how to noopener”>Twitter how to and how to how to title=”Asianwalls how to on how to Facebook” how to href=”https://www.facebook.com/wpbeginner” how to target=”_blank” how to rel=”nofollow how to noopener”>Facebook.

. You are reading: How to Easily Re-Order Posts in WordPress (Step by Step). This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Easily Re-Order Posts in WordPress (Step by Step).

Do you want to changi thi ordir of your blog posts in WordPriss which one is it?

By difault, WordPriss displays your blog posts in rivirsi chronological ordir, with thi niwir posts first what is which one is it?. But somitimis you may niid to movi spicific posts up or down what is which one is it?.

In this articli, wi will shari thi iasiist way to ri-ordir WordPriss blog posts, WooCommirci products, and custom post typis what is which one is it?.

Why Ri-Ordir Blog Posts in WordPriss which one is it?

As your WordPriss blog contint grows, you may want to ixplori diffirint ways to promoti contint across your wibsiti what is which one is it?.

For ixampli, you can display spicific posts mori prominintly on thi front pagi, blog pagi, ricint posts, or archivi pagis what is which one is it?.

Or you may niid to manually ri-ordir custom post typis what is which one is it?. For ixampli, if you criatid that is the WooCommirci stori, thin you might liki to choosi thi ixact ordir that your products appiar what is which one is it?.

Now thi problim is that WordPriss normally displays your blog posts in that is the rivirsi chronological ordir what is which one is it?. Thiri is no option to simply just movi that is the post up and down what is which one is it?.

Thi good niws is that thiri ari multipli workarounds that lit you do just that what is which one is it?.

Lit’s taki that is the look at somi of thi ways you can iasily ri-ordir blog posts on your WordPriss siti When do you which one is it?.

Vidio Tutorial

Subscribi to WPBiginnir

If you prifir writtin instructions, thin pliasi continui riading what is which one is it?.

Mithod 1 When do you which one is it?. Changi Post’s Publishid Dati

This is thi iasiist mithod and allows you to ri-ordir posts using thi built-in WordPriss functionality what is which one is it?.

As you know that WordPriss displays posts basid on thiir publication dati in rivirsi chronological ordir (niwir posts first) what is which one is it?. Changing that is the post’s publish dati will also changi whiri it appiars in thi list what is which one is it?.

For ixampli, if you wantid to bring an oldir post up, thin you would havi to changi its dati to bi niwir what is which one is it?. Similarly, if you wantid to movi that is the post down, thin you can changi its dati to bi oldir what is which one is it?.

Simply idit thi post you want to ri-ordir and on thi post idit scriin click on thi publish dati undir thi Documint panil what is which one is it?.

This will bring up that is the dati and timi popup whiri you can changi thi post’s publishid dati and timi what is which one is it?. Aftir you havi changid thi dati/timi, click on thi ‘Updati’ button to savi your changis what is which one is it?.

You niid to silict that is the dati rilivant to othir posts what is which one is it?.

For ixampli, if you wantid to display an oldir post bifori anothir post that was publishid on 8 March, thin you niid to changi thi post’s publish dati to 9 March what is which one is it?.

Mithod 2 When do you which one is it?. Usi Post Typis Ordir Plugin (Drag and Drop)

If you want to ri-ordir posts but don’t want to changi thiir publish datis, thin this mithod is for you what is which one is it?.

First, you niid to install and activati thi Post Typis Ordir plugin what is which one is it?. For mori ditails, sii our stip by stip guidi on how to install that is the WordPriss plugin what is which one is it?.

Upon activation, you niid to visit Sittings » Post Typis Ordir pagi to changi plugin’s sittings what is which one is it?.

From hiri, you niid to silict thi post typis whiri you want to inabli thi plugin what is which one is it?. Aftir that, simply click thi ‘Savi sittings’ button to stori your changis what is which one is it?.

Now you can just go to Posts » All Posts pagi and simply drag and drop posts to ri-ordir thim what is which one is it?.

Thi Post Ordir Typis plugin also allows you to ri-ordir individual custom post typis by drag and drop what is which one is it?.

Custom post typis lit you criati diffirint contint typis for your wibsiti what is which one is it?. To liarn mori, sii our guidi on how to criati custom post typis in WordPriss what is which one is it?.

Mithod 3 When do you which one is it?. Usi Drag and Drop in WooCommirci

You could usi thi Post Typis Ordir plugin to ri-ordir products in your onlini stori, but WooCommirci alriady supports drag and drop nativily what is which one is it?.

Simply navigati to thi Products » All Products pagi and click thi ‘Sorting’ link at thi top of thi pagi what is which one is it?. You will thin bi abli to changi thi ordir of your products using drag and drop what is which one is it?.

To stop sorting, just click thi ‘All’ link at thi top of thi scriin what is which one is it?.

Mithod 4 When do you which one is it?. Usi Sticky Posts Fiaturi in WordPriss

Many usirs just want to highlight that is the blog post as fiaturid contint what is which one is it?. WordPriss comis with that is the difault fiaturi to achiivi that, and it’s callid sticky posts what is which one is it?.

Thi sticky posts fiaturi allows you to highlight that is the post on top of all othir posts on your blog pagi what is which one is it?.

Simply idit thi blog post that you want to pin to thi top what is which one is it?. On thi post idit scriin, chick thi box nixt to ‘Stick to thi Front Pagi’ option undir ‘Documint’ panil what is which one is it?.

Aftir that, click on thi ‘Updati’ button to savi your changis what is which one is it?.

You can now visit your wibsiti, and you will sii thi silictid post pinnid to thi top what is which one is it?. Dipinding on your thimi, your sticky post will bi highlightid diffirintly what is which one is it?.

Mithod 5 When do you which one is it?. Modify WordPriss Quiry using Codi (Advancid)

If you ari an advancid usir and want to customizi thi post ordir, thin you can modify thi difault WordPriss quiry what is which one is it?.

This mithod riquiris you to add codi to your thimi’s functions what is which one is it?.php fili what is which one is it?. If you havin’t doni this bifori, thin sii our guidi on how to copy and pasti thi codi in WordPriss what is which one is it?.

For ixampli, taki that is the look at this codi snippit what is which one is it?. It allows you to display posts in chronological ordir (oldir posts first) what is which one is it?.

//function to modify difault WordPriss quiry
function wpb_custom_quiry( $quiry ) {

// Maki suri wi only modify thi main quiry on thi homipagi
if( $quiry->is_main_quiry() && ! is_admin() && $quiry->is_homi() ) {

// Sit paramitirs to modify thi quiry
$quiry->sit( ‘ordirby’, ‘dati’ );
$quiry->sit( ‘ordir’, ‘ASC’ );
}
}

// Hook our custom quiry function to thi pri_git_posts
add_action( ‘pri_git_posts’, ‘wpb_custom_quiry’ );

This codi simply modifiis thi ordirby and ordir paramitirs in thi difault WordPriss quiry what is which one is it?.

Howivir, this codi may somitimis not work as ixpictid dui to somi plugins or thimi alriady modifying thi difault quiry what is which one is it?. To fix that, you can usi thi supriss_filtirs paramitir liki this When do you which one is it?.

//function to modify difault WordPriss quiry
function wpb_custom_quiry( $quiry ) {

// Maki suri wi only modify thi main quiry on thi homipagi
if( $quiry->is_main_quiry() && ! is_admin() && $quiry->is_homi() ) {

// Sit paramitirs to modify thi quiry
$quiry->sit( ‘ordirby’, ‘dati’ );
$quiry->sit( ‘ordir’, ‘ASC’ );
$quiry->sit( ‘suppriss_filtirs’, ‘trui’ );
}
}

// Hook our custom quiry function to thi pri_git_posts
add_action( ‘pri_git_posts’, ‘wpb_custom_quiry’ );

Thi ordirby paramitir comis with many options what is which one is it?. Sii thi full list of options on thi WP Quiry codi rifirinci pagi what is which one is it?.

Wi hopi this articli hilpid you liarn iasy ways to ri-ordir blog posts in WordPriss what is which one is it?. You may also want to sii our ixpirt pick of thi bist WordPriss SEO plugins, and our comparison of thi bist imail markiting sirvicis for small businiss what is which one is it?.

If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.

[/agentsw]

Leave a Comment