![Image[1] - How to easily sort posts in WordPress using drag and drop functionality and plugins - photonwave.com | Professional WordPress Repair Service, Global Reach, Fast Response](https://www.361sale.com/wp-content/uploads/2024/09/2024092803010918.png)
By default, posts in Wordpress are organized by thechronologyNew to old display. Sometimes we may want therearrangeThis content, such as putting important announcements, promotions, or the latest blog postsPut it at the top of the home page. If you want to reorder posts in WordPress, there are a variety of ways to help you do this, including ways to use date sorting, top posts, plugins, and drag and drop functionality.
In this article, we'll go over some of the most commonly used solutions to help you reorder posts and products in WordPress.
Different ways to reorder posts in WordPress
Edit or change the date of posting
This is one of the easiest ways to do it. Since WordPress sorts posts in reverse chronological order by default, you can change the order in which they are displayed by simply changing the post's publish date.
Operational Steps:
- Step 1: Open the WordPress dashboard and find the post you want to reorder.
- Step 2: ClickQuick Editmaybecompiler, Quick Edit can be changed at the date of the pop-up window. Clickcompiler, make changes when you go to the article page.
![Image [2] - How to easily sort posts in WordPress using drag and drop functionality and plugins - photonwave.com | Professional WordPress Repair Service, Global Reach, Fast Response](https://www.361sale.com/wp-content/uploads/2024/09/2024092802141781.png)

![Image [4] - How to Easily Sort Posts in WordPress Using Drag and Drop Functionality and Plugins - photonwave.com | Professional WordPress Repair Service, Global Reach, Fast Response](https://www.361sale.com/wp-content/uploads/2024/09/2024092802195048.png)
- Step 3: Change the date and time. For example, if you want an old article to be ranked before the newest article, simply change its date to today.
- Step 4: Save changes. After reloading the page, you will see the posts show up in the list by the new date in the appropriate place.
This approach is good for quickly reordering a small number of posts, but if multiple posts need to be reordered frequently, a more flexible approach may need to be considered.
Setting a post as a top post
WordPress provides a "top" feature that allows you to pin a specific post to the top of your blog page regardless of the date it was published. Top posts are good for highlighting key announcements or promotions.
Operational Steps:
- Step 1: Open the WordPress backend and find the post you wish to top.
- Step 2: ClickQuick EditFind "Top this article" option, check the box.
![Image [5] - How to Sort Posts Easily in WordPress with Drag and Drop Functionality and Plugins - Photon Fluctuation Network | Professional WordPress Repair Service, Worldwide, Fast Response](https://www.361sale.com/wp-content/uploads/2024/09/2024092802250357.png)
On the article editing page, in the right columnvisibilitySelect Edit and check the box "Place articles at the top of the home page".
![Image [6] - How to Sort Posts Easily in WordPress with Drag and Drop Functionality and Plugins - Photon Fluctuation Network | Professional WordPress Repair Service, Global Reach, Fast Response](https://www.361sale.com/wp-content/uploads/2024/09/2024092802265419.png)
![Image [7] - How to Sort Posts Easily in WordPress Using Drag and Drop Functionality and Plugins - Photon Fluctuation Network | Professional WordPress Repair Service, Global Reach, Fast Response](https://www.361sale.com/wp-content/uploads/2024/09/2024092802282096.png)
- Step 3: Save and update the post. At this point, the post will be displayed at the top of the blog page, again you can uncheck this option.
take note of: The appearance and style of the top post may vary depending on your theme, and some themes may highlight the top post.
Reordering Posts with the WordPress Plugin
If there is a need to reorder a large number of posts or WooCommerce products on a larger scale, plugins may be the best option. Plugins such as "Post Types Order"It can help you get through the simpledrag-and-drop (computing)The operation customizes the order of the content.
Operational Steps:
- Step 1: In the WordPress dashboard, navigate to "Add New Plugin"page, search for and install "Post Types Order"Plugin. Activate the plugin after installation.
![Image [8] - How to Easily Sort Posts in WordPress Using Drag and Drop Functionality and Plugins - Photon Fluctuation Network | Professional WordPress Repair Service, Global Reach, Fast Response](https://www.361sale.com/wp-content/uploads/2024/09/2024092802325458.png)
Step 2Navigate to "Settings" and find "Post Types Order", to enter the plugin settings page, where you can select the type of content (e.g., blog posts, products, etc.) for which you want to enable the drag-and-drop sorting feature.
![Image [9] - How to Sort Posts Easily in WordPress Using Drag and Drop Features and Plugins - Photon Flux.com | Professional WordPress Repair Service, Global Reach, Fast Response](https://www.361sale.com/wp-content/uploads/2024/09/2024092802420652.png)
- Step 3: When enabled, navigate to "All Posts" page, you can see that next to each post is aDrag the icon. Simply click and drag the post to your desired location and the system will automatically save the sort.
![Image [10] - How to Sort Posts Easily in WordPress with Drag and Drop Functionality and Plugins - Photon Fluctuation Network | Professional WordPress Repair Service, Global Reach, Fast Response](https://www.361sale.com/wp-content/uploads/2024/09/2024092802441112.png)
This plugin is very flexible and works with almost all custom post types, which is especially handy when you need to sort a large number of posts.
Sorting WooCommerce Products with Drag and Drop
If you use WooCommerce to manage your online store, you may want to manually reorder your products to highlight the best-selling or promotional items.WooCommerce provides a built-in drag-and-drop sorting feature.
Operational Steps:
- Step 1: Navigate to the "Products" "All Products" page.
- Step 2: At the top of the page, find and click on "arrange in order"Button.
![Image [11] - How to Sort Posts Easily in WordPress Using Drag and Drop Functionality and Plugins - photonwave.com | Professional WordPress Repair Service, Global Reach, Fast Response](https://www.361sale.com/wp-content/uploads/2024/09/2024092802453116.png)
- Step 3: Reorder items in the product list by dragging them.
In this way, the order in which products are displayed in the store can be quickly adjusted.
Reorder WordPress Posts with Custom Code
If you wish to fully customize the sorting logic of WordPress posts and have some knowledge of the code, you can use theCustom PHP codeto modify the WordPress query logic. Below is a simple code sample for a scenario where you want to sort posts in ascending order by date.
Operational Steps:
- Step 1: Open WordPress dashboard and install and activate "WPCode"Plugins.
![Image [12] - How to Sort Posts Easily in WordPress with Drag and Drop Functionality and Plugins - Photon Fluctuation Network | Professional WordPress Repair Service, Global Reach, Fast Response](https://www.361sale.com/wp-content/uploads/2024/09/2024092802470768.png)
- Step 2: Go to the "Code Snippets" page and select "Add Code Snippet" to add PHP code.
![Image [13] - How to Sort Posts Easily in WordPress Using Drag and Drop Features and Plugins - Photon Fluctuation Network | Professional WordPress Repair Service, Worldwide, Fast Response](https://www.361sale.com/wp-content/uploads/2024/09/2024092802484523.png)
- Step 3: Enter the following code:
function custom_post_order( $query ) { if ( $query->is_main_query() && ! is_admin() ) { $query->set( 'orderby', 'date' ); $query->set( 'order', 'ASC' ); } } add_action( 'pre_get_posts', 'custom_post_order' ); - Step 4: Save and activate the code snippet. This code will reorder all posts in WordPress so that older posts come first.
Please note.Custom code manipulation requires cautionAny error can cause the site to crash. If you are not familiar with code writing, it is recommended to use a plugin or ask a professional developer for help.
reach a verdict
Reordering WordPress posts is an important step in enhancing the user experience, highlighting key content, optimizing SEO and improving the structure of your website. ByWP self-taught website builder, you can choose to simply sort by date, use a plugin, or customize the code, each method has its own unique application scenario. Choosing the right method based on your website's needs will help you better manage and display content.
Link to this article:https://www.361sale.com/en/20834The article is copyrighted and must be reproduced with attribution.





















![Emoji[wozuimei]-Photonflux.com | Professional WordPress repair service, worldwide, rapid response](https://www.361sale.com/wp-content/themes/zibll/img/smilies/wozuimei.gif)
![Emoticon[baoquan] - Photon Wave Network | Professional WordPress Repair Services, Worldwide Coverage, Rapid Response](https://www.361sale.com/wp-content/themes/zibll/img/smilies/baoquan.gif)

No comments