[wp-trac] [WordPress Trac] #19958: Allow custom post types as "home" and get_posts() to return results for more than one post type
WordPress Trac
noreply at wordpress.org
Sat Jan 17 10:45:21 UTC 2026
#19958: Allow custom post types as "home" and get_posts() to return results for
more than one post type
-------------------------------------------------+-------------------------
Reporter: sooskriszta | Owner: pbearne
Type: enhancement | Status: accepted
Priority: normal | Milestone: Future
| Release
Component: Administration | Version: 3.3.1
Severity: normal | Resolution:
Keywords: needs-design has-patch has- | Focuses:
screenshots | accessibility
-------------------------------------------------+-------------------------
Changes (by ozgursar):
* keywords: needs-testing needs-design has-patch has-screenshots => needs-
design has-patch has-screenshots
Comment:
== Test Report
=== Description
This report validates whether the indicated patch works as expected.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/524
=== Environment
- WordPress: 7.0-alpha-61215-src
- PHP: 8.2.29
- Server: nginx/1.29.4
- Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
- Browser: Chrome 143.0.0.0
- OS: macOS
- Theme: Twenty Twenty-One 2.7
- MU Plugins: None activated
- Plugins:
* bbPress 2.6.14
* Test Reports 1.2.1
=== Steps to Reproduce
The following steps include bbPress installation because @sooskriszta 's
initial request was to be able to add CPTs as homepages.
1. Install and activate any classic theme (bbPress didn't work with a
block theme)
2. Set Permalinks to Post name
3. Install bbPress
4. Add a forum (e.g. My Forum) and a few topics
5. Assign topics to the forum
6. bbPress forums
7. Confirm your bbPress forum is reachable (In my test case
http://localhost:8889/forums/forum/my-forum/ is reachable)
=== Actual Results
1. ❌ Issue is not resolved with patch.
2. Error displayed on Settings > Reading page:
{{{
Warning: Undefined variable $post_types_allowed_on_home_page in
/var/www/src/wp-admin/options-reading.php on line 113
}}}
=== Additional Notes
- Patch breaks the Reading tab of Settings
=== Supplemental Artifacts
bbPress forum:
[[Image(https://files.catbox.moe/1o1sss.png)]]
Before patch:
[[Image(https://files.catbox.moe/7ssy56.png)]]
After patch:
[[Image(https://files.catbox.moe/1ug3vs.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19958#comment:54>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list