
WordPress session expired: Guide To Fix It Quickly
February 10, 2026
10 Quick Tricks to Boost WooCommerce Sales with Betheme
February 13, 2026WordPress sorts pages alphabetically or by publish date. That's almost never what you actually want.
If you've been trying to figure out how to reorder pages in WordPress, you've probably already noticed the default behavior doesn't match how most sites need their content organized. Your homepage links to services in the wrong sequence. Your subpages display out of order. The navigation feels off.
This guide covers every method available, from the built-in Page Attributes panel to drag-and-drop plugins like Simple Page Ordering and Nested Pages, to custom code using pregetposts and WPQuery. You'll also learn how WordPress page order works at the database level, how to fix common sorting problems, and which approach fits your site's size.
What Is Page Order in WordPress
WordPress stores a numeric value called menuorder in the wpposts database table for every page you create. This number controls where each page appears relative to others across your site.
Most people don't realize this field even exists until their pages start displaying in the wrong sequence. By default, WordPress sorts pages alphabetically or by publication date, depending on your theme. That's not always helpful.
The menuorder value is separate from your navigation menu position. Changing one doesn't automatically change the other. Your WordPress admin dashboard treats these as two distinct systems, which is a common source of confusion.
This ordering value affects several front-end outputs:
- Page lists generated by the
wplistpages()template tag - The default Pages widget in classic WordPress sidebars
- Parent-child page hierarchies and how subpages are sorted
- Any theme that auto-generates website navigation from your page structure
W3Techs data shows WordPress powers 43.4% of all websites globally as of 2025. That's over 500 million sites. And on a huge number of them, page ordering is handled poorly or not at all, because the default behavior is rarely what anyone actually wants.
The WordPress CMS page structure gives you full control over this ordering, but only if you know where to look. The built-in Page Attributes panel, drag-and-drop plugins, custom code, and the newer Full Site Editing tools all write to the same menuorder field in different ways.
Think of it this way. The database holds the truth. Everything else, your menus, your theme templates, your page list blocks, just reads that value and decides what to do with it.
How to Reorder Pages Using Page Attributes

This is the no-plugin method. It's been in WordPress since the beginning and it still works fine for small sites.
Open any page in the WordPress editor (Block Editor or Classic Editor, doesn't matter). Look for the Page Attributes panel in the right sidebar. You'll see a field labeled "Order" with a default value of 0.
Lower numbers display first. A page with order 5 shows before a page with order 10.
Setting Order Values Manually
The smart move is to space your numbers out. Use 10, 20, 30 instead of 1, 2, 3. That way, when you need to slot a new page between two existing ones, you've got room. Took me a while to figure that one out.
Assign your homepage or most prominent page the lowest number. Work down from there in increments that leave breathing room.
If you also need to set a parent page, you can do that in the same panel. WordPress will respect the order value within each parent-child group.
When This Method Falls Apart
It gets tedious fast. Once you're past 15 or 20 pages, manually editing each one to change a single number becomes a time sink. You can't see all your pages at once, and there's no visual feedback showing the current sort order across your full page list.
Notta research indicates over 500 new WordPress websites launch daily. Many of these grow beyond 20 pages within months, making manual page attributes ordering impractical for anything but the simplest sites.
For larger WordPress sites, especially those with deep page hierarchies or frequently changing content, you'll want a visual page ordering tool. Which brings us to plugins.
Drag-and-Drop Plugins for Page Reordering
Three plugins handle the bulk of WordPress page sorting with drag-and-drop interfaces. Each writes to the same menuorder database field. The difference is in how they present the experience.
| Plugin | Best For | Key Feature |
| Simple Page Ordering | Quick reordering on small to mid-sized sites. | Zero UI bloat. Drag-and-drop works directly on the standard "All Pages" list. |
| Nested Pages | Complex hierarchies and "Menu-first" workflows. | Tree view interface. Automatically generates/syncs a WordPress Nav Menu as you drag pages. |
| Intuitive Custom Post Order | Sites with high-volume Custom Post Types (CPTs). | Cross-Type Support. One settings page to enable drag-and-drop for posts, pages, and all custom types. |
| Simple Custom Post Order | Users needing PHP 8.4+ performance & accessibility. | Modernized Codebase. 2026 update includes high-speed targeted cache clearing and ARIA support. |
The WordPress Plugin Repository has over 59,000 free plugins available. But for page reordering specifically, these three cover nearly every use case you'll run into.
Simple Page Ordering Setup and Usage
Built by 10up, one of the most well-known WordPress agencies. Install it, activate it, and you're done. No settings page, no configuration.
Go to Pages > All Pages in your WordPress admin dashboard. Grab any page row and drag it where you want. The plugin saves the new order automatically.
It handles child pages too. Drag a page slightly to the right under another page and it becomes a subpage. Drag it back left and it returns to the top level. Clean and simple.
The one catch: on sites with hundreds of pages, the drag-and-drop can feel sluggish. The plugin loads all pages at once, which isn't great for performance on very large sites.
Nested Pages as an Alternative
Nested Pages takes a different approach. Instead of modifying the default WordPress pages screen, it replaces it with a visual page tree.
You get a bird's-eye view of your entire page hierarchy. Every parent page shows its children indented below it. And here's the thing I actually prefer about this plugin: you can quick-edit titles, slugs, and publication status right from the tree view without opening each page individually.
It also includes a link manager. You can add external links directly into your page tree structure, which is useful if your website navigation mixes internal pages with external resources.
For sites that treat pages like a structured content library (think educational websites or membership websites), Nested Pages is the stronger pick. The visual hierarchy alone saves a lot of clicking around.
Reordering Pages in WordPress Navigation Menus
Here's where people get tripped up. Changing page order and changing menu order are two different things.
The page order (menuorder in the database) controls how pages sort when pulled by template tags or page list blocks. The navigation menu order controls what appears in your site's header or footer menus and in what sequence.
You can have a page sitting at position 1 in your database order but position 5 in your navigation menu. WordPress treats them independently.
Classic Theme Menu Reordering
Appearance > Menus is the screen you need. It's been the standard WordPress menu management tool for over a decade.
Drag pages up and down to reorder them. Drag them slightly to the right to create dropdown sub-items. Nothing here writes back to the menuorder field in your database. It only affects the menu itself.
If your website menu structure is all you care about (and for many sites, it is), you might not need to change page order at all. Just rearrange things here and call it done.
Block Theme Navigation Reordering
Block themes like Twenty Twenty-Four and Twenty Twenty-Five use the WordPress Site Editor instead of the classic Menus screen.
Gutenberg adoption has climbed to over 60% according to developer surveys, up from 37% in 2020. Full Site Editing grew by 145% in 2025 alone. So this method is becoming the default for new WordPress installations.
Open the Site Editor. Click on the Navigation block in your header. You can add, remove, and rearrange page links directly in the visual editor. The experience is cleaner than the old Menus screen, but it takes some getting used to.
One thing to watch: the Navigation block and the Page List block behave differently. The Page List block pulls from your database page order automatically. The Navigation block lets you set a custom order that's independent of everything else. Know which one you're using.
Reordering Pages with the WordPress Block Editor

The Gutenberg block editor introduced several ways to manage page order that didn't exist in the Classic Editor. Most people don't explore them because they're tucked away in less obvious places.
The Page List Block
Drop a Page List block into any page or template. It automatically generates a list of all your published pages, sorted by their menuorder values from the database.
This is the quickest way to test whether your page ordering is actually working. If your pages show up in the wrong sequence inside this block, your menuorder values need fixing.
The block has basic filtering options. You can exclude specific pages, show only child pages of a given parent, and toggle the display of nested subpages.
Using the Site Editor for Page Management
WordPress Full Site Editing lets you control templates, template parts, and global styles from a single interface. The List View panel inside the Site Editor shows every block on your current template in a collapsible tree.
You can drag blocks (including navigation items and page references) up and down within this List View. For simple websites built entirely with block themes, this might be all the page management you need.
The limitation? Bulk reordering is still clunky. If you need to rearrange 30 pages at once, the block editor won't save you time compared to a dedicated plugin. WordPress 6.x has improved the editing experience significantly, but it's still optimized for building layouts, not for sorting large page lists.
Reordering Child Pages Under a Parent Page
Parent-child page relationships in WordPress create hierarchy. A "Services" page with five subpages underneath it. A "Locations" page with a child page for each city. This kind of structure is common on business websites and professional websites with deep content architectures.
The ordering within each parent group follows the same menuorder field. But the execution has a few gotchas that trip people up regularly.
How Parent-Child Ordering Works
Each level sorts independently. Your top-level pages have their own order sequence. Child pages under Parent A have a separate sequence from child pages under Parent B.
Set the parent using the Page Attributes dropdown (or the quick edit panel in the pages list). Then assign order numbers to each child page within its group.
If you're using Simple Page Ordering or Nested Pages, child page ordering happens visually. Drag children up or down within their parent group and the plugin updates the menuorder values behind the scenes.
Displaying Sorted Child Pages on the Front End
The template tag wplistpages() with the childof parameter pulls all children of a specific page and displays them in menuorder sequence. You'll see this in sidebar widgets, footer page lists, and custom template sections.
Some themes also support shortcodes for listing subpages. And if your theme's structure relies on auto-generated navigation from page hierarchy, getting these order values right matters more than you might think for the overall user experience.
WordPress powers nearly a quarter of all ecommerce sites through WooCommerce. Many of those stores use parent-child page structures for product categories, policy pages, and multi-location content. Getting the sort order right isn't just about aesthetics. It affects how easily customers find what they need.
Reordering Pages Programmatically with Custom Code
Plugins work great until they don't. On large WordPress installations, or sites where you need precise control over page query behavior, writing custom code is the cleaner path.
The good news: WordPress gives you two solid tools for this. The pregetposts hook and the WPQuery class both let you control page ordering at the database query level.
Using pregetposts to Change Default Page Order
This WordPress hook fires before the main query runs. Add a function to your functions.php file (or better, a site-specific plugin) and you can force pages to sort by menuorder across your entire site.
The key parameters are orderby => 'menuorder' and order => 'ASC'. Always include the isadmin() and $query->ismainquery() conditionals. Skip them and you'll accidentally change queries in sidebars, footers, and widget areas.
The WordPress developer documentation specifically warns that pregetposts runs before WPQuery is fully set up. Some conditional tags like isfrontpage() won't work inside this hook, though ishome() will.
Custom WPQuery Arguments for Page Sorting
Direct query approach: Build a custom WPQuery with explicit ordering parameters wherever you need a sorted page list in your templates.
orderby => 'menuorder title'sorts by order number first, then alphabetically as a fallbackpostsperpage => -1pulls all pages (use cautiously on large sites)postparentparameter limits results to children of a specific page
WordPress has over 59,000 free plugins available. But for sites running 100+ pages with custom post types, a few lines of PHP in your theme or plugin will outperform any sorting plugin in both speed and flexibility.
When Code Makes More Sense Than a Plugin
Patchstack reported 7,966 new vulnerabilities in the WordPress ecosystem in 2024, with 96% found in plugins. Fewer plugins means fewer attack surfaces.
Code-based ordering is the better choice for WordPress Multisite networks, technology websites with complex architectures, or any site where performance is a top concern. The menuorder value persists through theme switches because it lives in the database, not in theme files.
How Page Order Affects Theme Templates and Widgets
Your page order values don't just affect menus. They show up in places most people forget about until something looks wrong on the front end.
| Theme Element | Reads menu_order? | 2026 Notes |
wp_list_pages() |
Yes | The classic template tag. Default sort is post_title, so you must set 'sort_column' => 'menu_order' in your arguments. |
| Classic Pages Widget | Yes | Still available in "Classic" areas. You can select "Page Order" in the dropdown menu. |
| Page List Block | Yes | By default, it inherits the hierarchical menu_order. However, it's often a "read-only" view until converted. |
| Navigation Block | No | Strictly manual. It uses its own internal JSON list. To use menu_order here, you must use the "Page List" inner-block inside of it. |
| Sitemap Plugins | Varies | Most (like Yoast or Rank Math) default to Date or Alpha for XML. For HTML sitemaps, they usually respect menu_order. |
| Query Loop Block | Yes | You must manually toggle "Order by" to Menu Order in the block settings sidebar. |
Themes That Auto-Generate Navigation
Some themes skip the WordPress menu system entirely and build navigation directly from your page hierarchy. These themes pull page titles and their menuorder values to create the header automatically.
If you're using a theme like this and your website layout feels off, the fix isn't in Appearance > Menus. It's in the page order values themselves. Check each page's Page Attributes panel.
Sitemap and SEO Plugin Behavior
Yoast SEO gets downloaded nearly 1 million times per week, according to WPShout. Its XML sitemap sorts pages by date, not menuorder. If you need your sitemap to reflect your custom page order, you'll need to filter the sitemap output or use a different sitemap plugin that respects the menuorder field.
Most SEO plugins treat page order as a display preference, not a crawl directive. Google doesn't care what position a page holds in your WordPress admin. But your visitors do, especially on sites with structured content like finance websites or healthcare websites where page hierarchy signals trust.
Common Problems When Reordering Pages in WordPress
Page reordering breaks more often than you'd expect. And the causes aren't always obvious.
Page Order Not Saving After Update
Caching is the usual suspect. Browser cache, WordPress caching plugins (WP Rocket, W3 Total Cache, LiteSpeed Cache), server-side object caching, and CDN layers can all serve stale versions of your page lists.
Clear every layer. Hard refresh your browser (Ctrl+F5 on Windows, Cmd+Shift+R on Mac). Purge your caching plugin. If you're on SiteGround or similar managed hosting, clear their built-in cache too.
Plugin Conflicts With menuorder
Running two page ordering plugins at once is a recipe for confusion. Both try to write to the same menuorder field. The last save wins, and you'll get unpredictable results.
Patchstack data shows 33% of plugin vulnerabilities went unpatched before public disclosure in 2024. Keep your ordering plugins updated and avoid stacking multiple tools that modify the same database field.
WooCommerce and Plugin-Generated Pages
WooCommerce creates pages automatically: Shop, Cart, Checkout, My Account. These pages often resist standard reordering because WooCommerce assigns them through its own settings panel, not through the typical page hierarchy.
WooCommerce powers roughly 9% of all websites globally, according to W3Techs. If you're running an online store, check WooCommerce > Settings > Advanced to manage these special page assignments separately from your regular page order.
Theme Overriding Your Custom Order
Some themes hard-code their own orderby parameters in template files. Your carefully set menuorder values get ignored because the theme's custom query overrides them with date-based or alphabetical sorting.
Switch to a default theme like Twenty Twenty-Five temporarily. If your page order works correctly there, the problem lives in your theme's template files, not in WordPress itself.
The Best Method for Reordering Pages Based on Site Size
There's no single right answer. Your site's page count, how often you rearrange content, and whether you're running a single site or a WordPress Multisite network all factor in.
| Site Size | Recommended Method | Why |
| Under 20 pages | Page Attributes field | Built-in, zero-bloat; easiest for simple sites where edits are rare. |
| 20 to 100 pages | Simple Page Ordering | Pure JS drag-and-drop; works on the standard list screen without adding new menus. |
| 100+ pages | Nested Pages | Provides a Tree View; bulk cloning and "Menu Sync" save hours of manual navigation setup. |
| Enterprise | pre_get_posts logic |
Maximum performance; avoids "plugin conflict hell" and allows for complex conditional logic. |
Small Sites (Under 20 Pages)
The built-in Page Attributes panel handles this fine. Open each page, set an order number, save. Done in five minutes.
Most one-page websites or small brochure sites fall here. You won't rearrange pages often enough to justify installing a plugin for it.
Medium Sites (20 to 100 Pages)
This is where drag-and-drop plugins earn their keep. Simple Page Ordering by 10up works directly on the WordPress admin pages screen. Nested Pages gives you the visual tree view with quick-edit capabilities.
WordPress powers sites for everything from consulting firms to construction companies. At this scale, being able to drag 50 pages into the right sequence in two minutes versus manually editing each one is the difference between getting it done and putting it off.
Large and Enterprise Sites
GoodFirms data shows nearly 1,000 new WordPress sites launch daily. Many of these grow into large-scale operations quickly.
At 100+ pages, combine Nested Pages for day-to-day visual management with custom pregetposts code for template-level control. On WordPress Multisite or enterprise installations, skip the plugin entirely and manage page order through programmatic queries in a site-specific plugin.
This keeps your WordPress page management clean, your plugin count low, and your site's performance predictable. For corporate websites running dozens of subdomains, that predictability matters more than convenience.
FAQ on How To Reorder Pages In WordPress
How do I change the order of pages in WordPress without a plugin?
Open any page in the WordPress editor. Find the Page Attributes panel in the right sidebar. Enter a number in the Order field. Lower numbers appear first. Save and repeat for each page you want to reposition.
What is the best plugin to reorder WordPress pages?
Simple Page Ordering by 10up is the most popular choice. It adds drag-and-drop sorting directly to your Pages list screen. For sites with deep page hierarchies, Nested Pages offers a visual tree view with quick-edit features.
Why is my WordPress page order not updating?
Caching is almost always the cause. Clear your browser cache, purge your WordPress caching plugin, and flush any CDN layers. If the problem persists, check for plugin conflicts by temporarily deactivating other plugins one at a time.
What is the menuorder field in WordPress?
It's a numeric value stored in the wpposts database table for every page. WordPress reads this field to determine page display sequence. Drag-and-drop sorting plugins and the Page Attributes panel both write to this same field.
Does changing page order affect my navigation menu?
Not directly. WordPress treats page order and menu order as separate systems. The Appearance > Menus screen controls navigation independently. Changing menuorder values only affects template tags like wplistpages() and the Page List block.
How do I reorder child pages under a parent page?
Each parent group sorts independently using the same menuorder field. Set order numbers for child pages through Page Attributes, or use a plugin like Simple Page Ordering to drag subpages within their parent group visually.
Can I reorder pages in the WordPress block editor?
The Gutenberg block editor doesn't have a dedicated page reordering screen. But the Page List block displays pages sorted by menuorder. In Full Site Editing themes, the Site Editor lets you rearrange navigation items visually.
How do I reorder pages programmatically with code?
Use the pregetposts hook in your functions.php file or a site-specific plugin. Set the orderby parameter to menuorder and order to ASC. Always include isadmin() and ismainquery() conditionals to avoid breaking other queries.
Does page order affect SEO or search rankings?
Google doesn't use WordPress page order as a ranking signal. But logical page sorting improves site structure and user experience, which indirectly supports better engagement metrics. Sitemap plugins typically ignore menuorder and sort by date instead.
How do I reorder WooCommerce pages in WordPress?
WooCommerce pages like Shop, Cart, and Checkout are assigned through WooCommerce > Settings > Advanced, not through standard page ordering. Standard drag-and-drop plugins may not affect these pages because WooCommerce manages their assignments separately.
Conclusion
Getting your WordPress page sorting right comes down to picking the method that matches your site. Knowing how to reorder pages in WordPress gives you control over your site structure, your navigation flow, and how visitors experience your content.
For small sites, the Page Attributes order field does the job. Medium sites benefit from drag-and-drop plugins like Nested Pages or Intuitive Custom Post Order. Larger WordPress installations should lean on custom WPQuery arguments or the pregetposts hook for performance and flexibility.
The menu_order database field is what ties all these methods together. Every plugin, every template tag, every block reads from the same place.
Test your changes across your full page hierarchy, clear your cache after updates, and keep your plugin count low. A clean page order makes your entire WordPress site easier to manage and easier to use.





















