[wp-trac] [WordPress Trac] #45539: Block Editor for CPT

WordPress Trac noreply at wordpress.org
Sat Dec 8 14:33:07 UTC 2018


#45539: Block Editor for CPT
-------------------------------------+-------------------------------------
 Reporter:  sovitranjitkar           |      Owner:  (none)
     Type:  defect (bug)             |     Status:  new
 Priority:  normal                   |  Milestone:  Awaiting Review
Component:  Editor                   |    Version:  5.0
 Severity:  normal                   |   Keywords:  needs-testing dev-
  Focuses:  javascript,              |  feedback
  administration                     |
-------------------------------------+-------------------------------------
 Hi there,

 I have a CPT register with name `register_post_type( 'themes', $args );`
 after updating to WP 5.0 I came to know that I have to add `'show_in_rest'
 => true` to get the new block editor for CPT. I have added it and shows a
 new editor successfully. However, I cannot able to see the **Featured
 Image** section for both CPT's and core Post editor as well as registered
 **Taxonomy** section on CPT.

 While debugging I found that there is an error on:

 {{{
 Failed to load resource: the server responded with a status of 400 (Bad
 Request)
 http://localhost//wp/wp-json/wp/v2/themes?status=active&_locale=user:1
 }}}

 {{{
 Uncaught (in promise) Error: [object Object]
 at redux-routine.min.js?ver=3.0.3:1
 at redux-routine.min.js?ver=3.0.3:1
 http://localhost/wp/wp-includes/js/dist/redux-routine.min.js?ver=3.0.3
 }}}

 While changing the CPT name `themes` to any other name it shows **Featured
 Image** section in both CPT and core Post but not able to see registered
 **Taxonomy** sections on CPT.

 Thank you!

 Regards,
 Sovit Ranjitkar
 WordPress Developer/Designer

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45539>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list