Wp-calypso: FSE: wp_template post type does not return API response in wpcom namespace

Created on 20 Aug 2019  路  5Comments  路  Source: Automattic/wp-calypso

When directly visiting https://wordpress.com/types/wp_template/{siteId} we see that the count endpoint works, but no post content is being returned for this post type. We should mirror the edit functionality that /wp-admin/edit.php?post_type=wp_template provides

Calypso
Screen Shot 2019-08-19 at 3 54 36 PM

wp-admin
Screen Shot 2019-08-19 at 4 02 15 PM

[Goal] Full Site Editing [Pri] Low [Type] Bug

All 5 comments

Note: this is now wp_template_part.

D34120-code will fix this

馃This works for me without any additional work...

Tested on one of my test sites right now: https://wordpress.com/types/wp_template_part/coponsa8cfse12.wordpress.com

Screenshot 2019-10-17 at 17 02 20

Should we also want to show it in the menu, we can remove these lines:

https://github.com/Automattic/wp-calypso/blob/9ab21f03e217c8956d0c655dd58958f12421ed96/client/my-sites/sidebar/site-menu.jsx#L143-L146

@copons try doing it without your a8c superuser, it's passing some capability checks that will fail for mere mortals :)

We don't want it in the menu, which is why public was otherwise false.

This fix has been deployed

Was this page helpful?
0 / 5 - 0 ratings