[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
Wed Jan 28 21:52:33 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:  has-patch has-screenshots changes-   |     Focuses:
  requested needs-unit-tests needs-testing       |  accessibility
-------------------------------------------------+-------------------------
Changes (by pbearne):

 * keywords:  needs-design has-patch has-screenshots changes-requested =>
     has-patch has-screenshots changes-requested needs-unit-tests needs-
     testing


Comment:

 Add a custom CPT (books) with the new arg 'show_in_home_page_list' =>
 true,

 Change settings and check the home page changes as needed

 [[Image(https://github.com/user-
 attachments/assets/533df60e-f085-47f5-ad57-fae4011c8b99)]]

 [[Image(https://github.com/user-attachments/assets/76644b0e-b61a-470a-
 8eba-0275e79b479c)]]

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


More information about the wp-trac mailing list