[wp-trac] [WordPress Trac] #54896: TT2: Blank screen displayed for custom post type

WordPress Trac noreply at wordpress.org
Wed Jan 26 04:01:04 UTC 2022


#54896: TT2: Blank screen displayed for custom post type
---------------------------+-------------------------
 Reporter:  jffng          |       Owner:  (none)
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  5.9.1
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:  worksforme
 Keywords:                 |     Focuses:
---------------------------+-------------------------

Comment (by davidfcarr):

 Turned out the better solution was to filter on single_template_hierarchy
 as documented here
 https://developer.wordpress.org/reference/hooks/type_template_hierarchy/

 Is called earlier in the process and doesn't disrupt block theme operation

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


More information about the wp-trac mailing list