{"id":28518,"date":"2024-09-23T16:54:11","date_gmt":"2024-09-23T11:24:11","guid":{"rendered":"https:\/\/www.wpoven.com\/blog\/?p=28518"},"modified":"2024-09-23T16:54:14","modified_gmt":"2024-09-23T11:24:14","slug":"how-to-reorder-your-wordpress-posts-using-drag-drop","status":"publish","type":"post","link":"https:\/\/www.wpoven.com\/blog\/how-to-reorder-your-wordpress-posts-using-drag-drop\/","title":{"rendered":"How to Reorder Your WordPress Posts using Drag &amp; Drop?"},"content":{"rendered":"\n<p class=\"justify\">Are you looking to reorder Posts in WordPress? Well, you have landed on the right post.&nbsp;<\/p>\n\n\n\n<p class=\"justify\">Although WordPress By default reorders the posts in reverse chronological order, the latest posts will show up first and the older ones get pushed to the bottom.<\/p>\n\n\n\n<p class=\"justify\">But if you want to do a lot more to it, i.e. prioritize certain posts as per your requirement, we have covered this in this post. So stay tuned and keep reading this till the end.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_c3a82bfa-751a-40a1-bfa6-f175e7eeedb0\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_c3a82bfa-751a-40a1-bfa6-f175e7eeedb0\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h2 class=\"wp-block-heading\">Why do you need to reorder Posts in WordPress?<\/h2>\n\n\n\n<p class=\"justify\">Here are some of the reasons, that you should check out that help you understand the benefits of reordering posts in WordPress.<\/p>\n\n\n\n<ul class=\"justify\">\n<li><strong>Highlighting Important Content:<\/strong><strong><br><\/strong>Sometimes, you may want to display your hero content, like an announcement or special blog post, at the top of your homepage, blog page, or archives so visitors see it first.<\/li>\n\n\n\n<li><strong>Reordering Custom Post Types:<\/strong><strong><br><\/strong>If you manage different types of posts, such as products in a WooCommerce store, you might want to manually adjust the order to show your best-selling or discounted items first.<\/li>\n\n\n\n<li><strong>WordPress Default Post Order:<\/strong><strong><br><\/strong>By default, WordPress arranges posts in reverse chronological order (newest first). This setup makes it hard to rearrange content based on your preferences.<\/li>\n\n\n\n<li><strong>Limited Reordering Options:<\/strong><strong><br><\/strong>Even with tools like the Query Loop block in WordPress&#8217;s block editor or full-site editor, the options for changing the order of posts are limited, offering little flexibility to move posts up or down as needed.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_c3a82bfa-751a-40a1-bfa6-f175e7eeedb0\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h2 class=\"wp-block-heading\">Different Methods to Reorder Posts in WordPress<\/h2>\n\n\n\n<p class=\"justify\">Now that we&#8217;ve provided you with the reasons why you should consider reordering posts in WordPress.<\/p>\n\n\n\n<p class=\"justify\">let&#8217;s explore some simple solutions and tips to help you easily change the order of blog posts, WooCommerce products, and other content.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_c3a82bfa-751a-40a1-bfa6-f175e7eeedb0\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h2 class=\"wp-block-heading\">1. Edit or Change the date of the Published Post<\/h2>\n\n\n\n<p class=\"justify\">One of the quickest and Easiest ways to reorder Posts in WordPress is simply changing the published posts\u2019 date.&nbsp;<\/p>\n\n\n\n<p class=\"justify\">As we have already mentioned above, by default WordPress displays posts in the reverse chronological order, i.e. the newer posts will appear first.<\/p>\n\n\n\n<p class=\"justify\">But when you change the date and time of the published post, it will also change where it used to appear on the other areas of your site.&nbsp;<\/p>\n\n\n\n<p class=\"justify\">Let us understand it with an example, Suppose you want to change or update an old post or content and want to show it first to your visitors, all you have to do is to change its publication date to today.<\/p>\n\n\n\n<p class=\"justify\">Similarly, if you want certain posts to push down the list, just change their publication date to older dates.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"606\" height=\"394\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-53.png\" alt=\"change their publication date to older dates od a post\" class=\"wp-image-28530\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-53.png 606w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-53-300x195.png 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" title=\"\"><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p> Here\u2019s how you can do it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Open the Blog Post<\/strong><\/h3>\n\n\n\n<ul>\n<li>Go to your WordPress dashboard.<\/li>\n\n\n\n<li>Open the blog post you want to reorder in the block editor.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Go to the Publish Settings<\/strong><\/h3>\n\n\n\n<ul>\n<li>In the right-hand sidebar, click on the \u2018Post\u2019 tab.<\/li>\n\n\n\n<li>Find the \u2018Publish\u2019 section and click on the link next to the publish date.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Change the Date and Time<\/strong><\/h3>\n\n\n\n<ul>\n<li>A popup will appear where you can adjust the publish date and time.<\/li>\n\n\n\n<li>Choose a new date based on where you want the post to appear. For example, if you want it to show after a post published on February  set the date to February 29, 2024.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"550\" height=\"380\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-52.png\" alt=\"\" class=\"wp-image-28528\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-52.png 550w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-52-300x207.png 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" title=\"\"><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4: Save Your Changes<\/strong><\/h3>\n\n\n\n<ul>\n<li>Once you\u2019ve changed the date and time, click the \u2018Update\u2019 button to save your changes.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_c3a82bfa-751a-40a1-bfa6-f175e7eeedb0\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<p class=\"has-text-align-left round has-background\" style=\"background-color:#daf2ff\"><strong>Read:<\/strong>   \ud83d\udea9 <a href=\"https:\/\/www.wpoven.com\/blog\/how-to-hide-a-page-in-wordpress\/\" data-type=\"link\" data-id=\"https:\/\/www.wpoven.com\/blog\/how-to-hide-a-page-in-wordpress\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Hide a Page in WordPress? [6 Quick Ways]<\/a><\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_c3a82bfa-751a-40a1-bfa6-f175e7eeedb0\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h2 class=\"wp-block-heading\">2. Make certain posts as sticky Posts<\/h2>\n\n\n\n<p class=\"justify\">If you have an important blog post, like a product announcement or information about a giveaway, you may want to make sure it stays at the top of your blog page so visitors see it first.&nbsp;<\/p>\n\n\n\n<p class=\"justify\">WordPress has a feature called &#8220;sticky posts&#8221; that lets you pin a post at the top, making it stay above all other posts, regardless of when it was published.<\/p>\n\n\n\n<p>Here\u2019s How you can do it:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Open the Blog Post<\/strong><\/h3>\n\n\n\n<ul>\n<li>Go to your WordPress dashboard and open the blog post you want to highlight.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Enable the Sticky Option<\/strong><\/h3>\n\n\n\n<ul class=\"justify\">\n<li>In the right-hand sidebar, under the \u2018Post\u2019 tab, find the option that says <strong>\u2018Stick to the top of the blog.\u2019<\/strong><\/li>\n\n\n\n<li>Check the box next to it.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"680\" height=\"316\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-60.png\" alt=\"\" class=\"wp-image-28538\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-60.png 680w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-60-300x139.png 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" title=\"\"><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Save the Changes<\/strong><\/h3>\n\n\n\n<ul>\n<li>Click the <strong>\u2018Update\u2019<\/strong> button to save your changes.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4: View the Post<\/strong><\/h3>\n\n\n\n<ul class=\"justify\">\n<li>Visit your website, and you\u2019ll see the post pinned at the top of your blog page.<\/li>\n\n\n\n<li>Depending on your WordPress theme, the sticky post may also look different or stand out more than other posts.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_c3a82bfa-751a-40a1-bfa6-f175e7eeedb0\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h2 class=\"wp-block-heading\">3. Use a WordPress Plugin&nbsp; (post types order)<\/h2>\n\n\n\n<p class=\"justify\">If you want more control and customization options to reorder Posts in WordPress, go for a WordPress Plugin such as \u201cPost Types order\u201d.<\/p>\n\n\n\n<p class=\"justify\">This plugin lets you easily rearrange posts, WooCommerce products, coupons, and other content by simply dragging and dropping them into the order you want.<\/p>\n\n\n\n<p>Here\u2019s How you can do it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Install and Activate the Plugin<\/strong><\/h3>\n\n\n\n<ul>\n<li>Go to your WordPress dashboard.<\/li>\n\n\n\n<li>Search for and install the <strong>Post Types Order<\/strong> plugin.<\/li>\n<\/ul>\n\n\n\n<ul>\n<li>Once installed, click <strong>Activate<\/strong>. (You can refer to a detailed guide if needed.)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Configure Plugin Settings<\/strong><\/h3>\n\n\n\n<ul>\n<li>After activation, go to <strong>Settings \u00bb Post Types Order<\/strong>.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"550\" height=\"234\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-56.png\" alt=\"\" class=\"wp-image-28533\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-56.png 550w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-56-300x128.png 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" title=\"\"><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"justify\">\n<li>In the <strong>\u2018Show \/ Hide re-order interface\u2019<\/strong> section, make sure all the content types (like blog posts or products) you want to reorder are set to <strong>\u2018Show\u2019<\/strong> using the dropdown menus.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"550\" height=\"180\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-58.png\" alt=\"\" class=\"wp-image-28535\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-58.png 550w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-58-300x98.png 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" title=\"\"><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Enable Drag and Drop for Content Types<\/strong><\/h3>\n\n\n\n<ul>\n<li>Scroll to the <strong>\u2018Archive Drag &amp; Drop\u2019<\/strong> section.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"550\" height=\"242\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-57.png\" alt=\"\" class=\"wp-image-28534\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-57.png 550w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-57-300x132.png 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" title=\"\"><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"justify\">\n<li>For each content type you want to reorganize, open the dropdown menu and select <strong>\u2018Yes\u2019<\/strong> to enable drag-and-drop reordering.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4: Save Settings<\/strong><\/h3>\n\n\n\n<ul>\n<li>Once you\u2019ve set everything up, click <strong>\u2018Save Settings\u2019<\/strong> to apply the changes.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 5: Reorder Your Content<\/strong><\/h3>\n\n\n\n<ul class=\"justify\">\n<li>Now, go to the content area you want to reorder, like <strong>Posts \u00bb All Posts<\/strong>.<\/li>\n\n\n\n<li>You\u2019ll see the list of posts, and you can simply drag and drop them into the order you prefer.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"1000\" height=\"456\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/Reorder-Posts.gif\" alt=\"\" class=\"wp-image-28539\" title=\"\"><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_c3a82bfa-751a-40a1-bfa6-f175e7eeedb0\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h2 class=\"wp-block-heading\">4. Use the Drag-Drop feature for Product Post Types (Woocommerce)<\/h2>\n\n\n\n<p class=\"justify\">If you are running an e-commerce store and powered it with Woocomemrce, there is a drag-drop feature with the help of which you can easily reorder your products.&nbsp;<\/p>\n\n\n\n<p class=\"justify\">Here\u2019s how to reorder your WooCommerce products using the built-in drag-and-drop feature, step by step:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Go to All Products<\/strong><\/h3>\n\n\n\n<ul>\n<li>From your WordPress dashboard, navigate to <strong>Products \u00bb All Products<\/strong>.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"680\" height=\"374\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-51.png\" alt=\"\" class=\"wp-image-28526\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-51.png 680w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-51-300x165.png 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" title=\"\"><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Click on the Sorting Link<\/strong><\/h3>\n\n\n\n<ul>\n<li>At the top of the page, find and click the <strong>\u2018Sorting\u2019<\/strong> link.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Reorder Your Products<\/strong><\/h3>\n\n\n\n<ul class=\"justify\">\n<li>You\u2019ll see your products listed, and you can now change their order by dragging and dropping them into your preferred positions.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"550\" height=\"320\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/arrange_products.gif\" alt=\"\" class=\"wp-image-28527\" title=\"\"><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4: Stop Sorting<\/strong><\/h3>\n\n\n\n<ul class=\"justify\">\n<li>Once you\u2019re happy with the new order of your products, click the <strong>\u2018All\u2019<\/strong> link to exit the sorting mode.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_c3a82bfa-751a-40a1-bfa6-f175e7eeedb0\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h2 class=\"wp-block-heading\">5. Re-order posts in WordPress using custom codes ( For Advanced users)<\/h2>\n\n\n\n<p class=\"justify\">If you want to change how WordPress organizes all your posts, including future ones, you might need to add some custom code.<\/p>\n\n\n\n<p class=\"justify\">For example, if you want to change the organization of posts, you usually have to add a special code to WordPress.<\/p>\n\n\n\n<p class=\"justify\">But be careful with the codes, although you might come across various posts that help you edit your theme\u2019s function.php file. But be cautious,&nbsp; this can lead to errors that might break your website.<strong><br><\/strong>If you update your WordPress theme, any changes you make in functions.php will be lost.<\/p>\n\n\n\n<p class=\"justify\"><strong><br><\/strong>Instead, it&#8217;s better to use a plugin called <strong>WPCode<\/strong>. This plugin is user-friendly and safe to use. It lets you add custom code (like CSS, HTML, or PHP) without risking your website&#8217;s functionality.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Install and Activate WPCode<\/strong><\/h3>\n\n\n\n<ul>\n<li>Go to your WordPress dashboard.<\/li>\n\n\n\n<li>Search for and install the <strong>WPCode<\/strong> plugin.<\/li>\n\n\n\n<li>Once installed, click <strong>Activate<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Add a New Code Snippet<\/strong><\/h3>\n\n\n\n<ul>\n<li>After activation, go to <strong>Code Snippets \u00bb Add Snippet<\/strong>.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"680\" height=\"328\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-50.png\" alt=\"\" class=\"wp-image-28525\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-50.png 680w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-50-300x145.png 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" title=\"\"><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Start Adding Your Custom Code<\/strong><\/h3>\n\n\n\n<ul>\n<li>Hover your mouse over <strong>\u2018Add Your Custom Code\u2019<\/strong> and click on <strong>\u2018Use snippet\u2019<\/strong>.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"680\" height=\"382\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-55.png\" alt=\"\" class=\"wp-image-28532\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-55.png 680w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-55-300x169.png 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" title=\"\"><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4: Title Your Snippet<\/strong><\/h3>\n\n\n\n<ul>\n<li>Type a title for your custom code snippet. This helps you recognize it later.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 5: Select Code Type<\/strong><\/h3>\n\n\n\n<ul>\n<li>Open the <strong>\u2018Code Type\u2019<\/strong> dropdown menu and choose <strong>\u2018PHP Snippet\u2019<\/strong>.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"680\" height=\"312\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-54.png\" alt=\"\" class=\"wp-image-28531\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-54.png 680w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-54-300x138.png 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" title=\"\"><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 6: Enter the Code<\/strong><\/h3>\n\n\n\n<ul>\n<li>In the code editor, add the following code snippet to display older posts first:<\/li>\n<\/ul>\n\n\n\n<p class=\"round has-background\" style=\"background-color:#f0f0f0\"><code><strong>\/\/ Function to modify default WordPress query<br><br>function wpb_custom_query( $query ) {<br><br>\/\/ Make sure we only modify the main query on the homepage&nbsp;&nbsp;<br><br>if( $query-&gt;is_main_query() &amp;&amp; ! is_admin() &amp;&amp; $query-&gt;is_home() ) {<br><br>&nbsp;&nbsp;&nbsp;&nbsp; \/\/ Set parameters to modify the query<br><br>&nbsp;&nbsp;&nbsp;&nbsp; $query-&gt;set( 'orderby', 'date' );<br><br>&nbsp;&nbsp;&nbsp;&nbsp; $query-&gt;set( 'order', 'ASC' );<br><br>}<br><br>}<br><br>\/\/ Hook our custom query function to the pre_get_posts<br><br>add_action( 'pre_get_posts', 'wpb_custom_query' );<\/strong><\/code><\/p>\n\n\n\n<p><strong>Step 7: Set the Insertion Options<\/strong><\/p>\n\n\n\n<ul>\n<li>Scroll to the <strong>\u2018Insertion\u2019<\/strong> section.<\/li>\n\n\n\n<li>Make sure <strong>\u2018Auto Insert\u2019<\/strong> is selected, so your code runs across the entire website.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"682\" height=\"246\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-49.png\" alt=\"\" class=\"wp-image-28524\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-49.png 682w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-49-300x108.png 300w\" sizes=\"(max-width: 682px) 100vw, 682px\" title=\"\"><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul>\n<li>Open the <strong>\u2018Location\u2019<\/strong> dropdown and choose <strong>\u2018Run Everywhere\u2019<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 8: Activate the Snippet<\/strong><\/h3>\n\n\n\n<ul>\n<li>At the top of the screen, toggle from <strong>\u2018Inactive\u2019<\/strong> to <strong>\u2018Active\u2019<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 9: Save Your Snippet<\/strong><\/h3>\n\n\n\n<ul>\n<li>Click <strong>\u2018Save Snippet\u2019<\/strong> to make the PHP code live.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"680\" height=\"324\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-59.png\" alt=\"\" class=\"wp-image-28537\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-59.png 680w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/image-59-300x143.png 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" title=\"\"><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 10: Check Your Site<\/strong><\/h3>\n\n\n\n<ul>\n<li>Visit your website to see the posts reorganized according to your code!<\/li>\n<\/ul>\n\n\n\n<p class=\"justify\">This process will help you change how posts are displayed on your site without the risk of editing your theme files directly.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.wpoven.com\/dedicated-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"137\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/wpoven-dedicated-hosting-1024x137.png\" alt=\"WPOven Dedicated Hosting\" class=\"wp-image-25538\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/wpoven-dedicated-hosting-1024x137.png 1024w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/wpoven-dedicated-hosting-300x40.png 300w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/wpoven-dedicated-hosting-768x102.png 768w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/wpoven-dedicated-hosting-1536x205.png 1536w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/wpoven-dedicated-hosting.png 1919w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" title=\"\"><\/a><\/figure>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_c3a82bfa-751a-40a1-bfa6-f175e7eeedb0\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"justify\">It might sound simple, but reordering posts in WordPress can have a significant impact on your overall user experience. The great thing about it is that WordPress allows you a great degree of freedom to customize and implement it as you wish.<\/p>\n\n\n\n<p class=\"justify\">I hope the methods mentioned above will help you easily reorder blog posts on your WordPress site. If you liked this post, feel free to share your opinions in the comment section below.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_c3a82bfa-751a-40a1-bfa6-f175e7eeedb0\"><hr class=\"ub_divider\" ><\/hr><\/div>","protected":false},"excerpt":{"rendered":"<p>Are you looking to reorder Posts in WordPress? Well, you have landed on the right post.&nbsp;<\/p>\n<p>Although WordPress By default reorders the posts in reverse chronological order, the latest posts will show up first and the older ones get pushed to the bottom.<\/p>\n<p>But if you want to do a lot more to it, i.e. prioritize certain posts as per your requirement, we have covered this in this post. So stay tuned and keep reading this till the end. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.wpoven.com\/blog\/how-to-reorder-your-wordpress-posts-using-drag-drop\/\" class=\"more-link\">Read More <i class=\"fa fa-angle-double-right\" aria-hidden=\"true\"><\/i><span class=\"screen-reader-text\"> &#8220;How to Reorder Your WordPress Posts using Drag &amp; Drop?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":28,"featured_media":28541,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ub_ctt_via":"","footnotes":""},"categories":[6],"acf":[],"featured_image_src":"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/09\/reorder_WordPress_posts.webp","author_info":{"display_name":"Rahul","author_link":"https:\/\/www.wpoven.com\/blog\/author\/rahul\/"},"_links":{"self":[{"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/posts\/28518"}],"collection":[{"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/comments?post=28518"}],"version-history":[{"count":3,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/posts\/28518\/revisions"}],"predecessor-version":[{"id":28568,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/posts\/28518\/revisions\/28568"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/media\/28541"}],"wp:attachment":[{"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/media?parent=28518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/categories?post=28518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}