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

WordPress Trac noreply at wordpress.org
Tue Jan 25 14:06:39 UTC 2022


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

Comment (by hellofromTonya):

 Test Report

 Env / Setup:
 * Theme: TT2
 * Plugins: a basic CPT plugin
 ([https://gist.github.com/hellofromtonya/9615b8a50928c0c8935949c53736785a
 code is in this gist])
 * WordPress: 5.9-RC4
 * OS: macOS Big Sur
 * Localhost: wp-env
 * Browser: Firefox


 Note: The testing plugin only registers the custom post type. This means
 posts in that post type will use `single` from TT2.

 == Setup Steps:

 1. Add the
 [https://gist.github.com/hellofromtonya/9615b8a50928c0c8935949c53736785a
 testing plugin file] to `wp-content/testcpt/`.
 2. Activate the testing plugin.
 3. Activate TT2.
 4. Trigger the permalinks by going to Settings > Permalinks > and then
 clicking the "Save changes" button.
 5. Go to TestCPT > Add new.
 6. Create a new post.

 Cool. Ready to test.

 == Steps to test

 1. View the TestCPT post in the front-end.
 Expected behavior: the post renders the content as it does any other post.

 == Results

 See it in action in the testing gif: [attachment:"54896-with-basic-
 cpt.gif"].

 The custom post type post rendered as expected.

 Unable to reproduce.

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


More information about the wp-trac mailing list