[wp-trac] [WordPress Trac] #55755: Enabling REST API on custom post type cause featured to be invisible on post, page, custom post type

WordPress Trac noreply at wordpress.org
Fri May 27 13:03:04 UTC 2022


#55755: Enabling REST API on custom post type cause featured to be invisible on
post, page, custom post type
--------------------------+------------------------------
 Reporter:  bikram_sth    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  5.9.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by marcbelletre):

 Hi @bikram_sth,

 I just ran into the exact same issue and finally figured it out. For some
 reason the featured image stopped working when enabling the block editor
 with `'show_in_rest' => true`

 The problem was that I had deleted by mistake the `index.php` file in my
 theme. Putting it back restored the featured image feature in the
 Gutenberg editor.

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


More information about the wp-trac mailing list