[wp-trac] [WordPress Trac] #63659: Adding the "order" or "orderby" query argument to the front page causes the latest news to be displayed

WordPress Trac noreply at wordpress.org
Thu Jul 3 15:42:51 UTC 2025


#63659: Adding the "order" or "orderby" query argument to the front page causes the
latest news to be displayed
--------------------------+------------------------------
 Reporter:  oglekler      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by pmbaldha):

 == Test Report

 Patch tested: https://patch-diff.githubusercontent.com/raw/WordPress
 /wordpress-develop/pull/9185.diff

 === Steps to Reproduce or Test
 1. Go to Admin Dashboard > Setting > Reading and **set homepage display to
 a static page** and **set the `Sample Page` as Homepage** as shown in the
 screenshot https://nimb.ws/eHo4GOC.
 2. Go to https://yoursite.com/ and you can see the Sample Page as home
 page as shown in the screenshot https://prnt.sc/PI5iaut9IS6V.
 3. 🐞 Browsing the https://yoursite.com/?order=test URL and the latest
 posts are displayed as shown in the screenshot
 https://prnt.sc/CZmuLb0tIX7R.
 4. 🐞 Browsing the https://yoursite.com/?orderby=test URL and the latest
 posts are displayed as shown in the screenshot
 https://prnt.sc/dB8oI_5dXDYM.

 === Expected Results
 When testing a patch to validate it works as expected:
 - ✅ The Sample page should be displayed as home page.


 When reproducing a bug:
 - ❌ The Latest page is displaying as home page.

 === Environment
 - WordPress: 6.9-alpha-20250703.144223
 - PHP: 7.4.31-dev
 - Server: PHP.wasm
 - Database: WP_SQLite_Driver (Server: 5.5 / Client: 3.40.1)
 - Browser: Chrome 137.0.0.0
 - OS: macOS
 - Theme: Twenty Twenty-Five 1.2
 - MU Plugins: None activated

 ==== Actual Results
 When reproducing a bug/defect:
 - ❌ The Latest page is displaying as home page.

 Screenshots:
 - https://prnt.sc/CZmuLb0tIX7R
 - https://prnt.sc/dB8oI_5dXDYM

 When testing the bugfix patch:
 - ✅ The Sample page is displayed as home page.

 Screenshots:
 - https://nimb.ws/MSpZ6eD
 - https://nimb.ws/GWkvQHi

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63659#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list