Skip Navigation

[Resolved] Finding and registering the name of custom post types and visible to WP_API

This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by johnH-8 7 years ago.

Assisted by: Shane.

Author
Posts
#509041

I am trying to: add wp_api rest support for and also confirm that custom post types are registered so that they can be accessed by the api

I visited this URL: hidden link

I expected to see: my custom post types within the output

Instead, I got: just posts and pages I think

#509107

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi John,

Thank you for contacting our support forum.

This functionality should already be there as our CPT can be exposed to the REST API.

Go to you CPT options page and then check the option "Show in Rest"

Please let me know if this helps.
Thanks,
Shane

#509144

Shazzam.. Thanks Shane!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.