Explore Bato Web Agency Webflow Certified Partner Profile Explore Bato Web Agency Webflow Certified Partner Profile

How do you change the order of posts in WordPress?

Illustration without a description Illustration without a description

WordPress normally lists posts from newest to oldest. If you only need a different order in one layout, edit its Query Loop block and choose newest, oldest, or alphabetical sorting. Sticky posts can keep selected articles near the top of the main posts page without changing every archive.

 

Changing publication dates works for a short manual list, but it also changes the date shown to readers, feeds, archives, and structured data. For a curated sequence, use a plugin that stores a custom order or a dedicated numeric field. Confirm that the theme or block actually reads that value; installing an ordering plugin does not automatically change every query.

 

Developers can set orderby and order in a targeted WP_Query. Common choices include date, title, menu_order, and a numeric meta value. Scope any pre_get_posts change to the intended public main query so it does not reorder admin screens, widgets, or unrelated archives.

 

$query = new WP_Query( array(
‘post_type’ => ‘post’,
‘orderby’ => ‘title’,
‘order’ => ‘ASC’,
) );

 

After changing the order, check pagination, sticky posts, category archives, feeds, and cached pages. A deterministic secondary sort, such as post ID, helps prevent items with the same custom value from moving between pages.