Skip Navigation

[Resolved] Need to expose Tooset Custom post type with REST

This support ticket is created 2 years, 5 months 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by dimoM 2 years, 5 months ago.

Assisted by: Waqar.

Author
Posts
#2193167

I enabled REST Support from Settings but did't find what is the exact endpoint address/route that have to be used to access it, if let say my custom post type is myposttype?

#2193613

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting us and I'd be happy to assist.

If you've enabled the option "show_in_rest" in your custom post type's settings, you can access it using the REST API endpoint:

{yourwebsite.com}/wp-json/wp/v2/{post-type-slug}/{post-id}

For example, for a "book" post type with ID "123", you can use:

hidden link

Following are some useful resources on the topic:

hidden link
https://developer.wordpress.org/rest-api/extending-the-rest-api/routes-and-endpoints/
https://toolset.com/documentation/programmer-reference/toolset-integration-with-the-rest-api/

regards,
Waqar

#2193651

My issue is resolved now. Thank you!

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