Skip Navigation

[Resolved] REST API not exposed for all post types

This support ticket is created 2 years, 6 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.

This topic contains 2 replies, has 2 voices.

Last updated by manakM 2 years, 6 months ago.

Author
Posts
#2421497

I am trying to use the Toolset REST API with Integromat, however, I am only able to see two custom toolset post types (Resources, and Policies). The other toolset post types (like Programmes, Our Team, etc.) are not visible in Integromat, neither are they visible while navigating through the routes structure of the base url - hidden link . I have enabled REST API in the Toolset settings.

#2421559

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

The visibility of post types in the REST API is determined by the parameter show_in_rest when registering post types with the WordPress function register_post_type (see https://developer.wordpress.org/reference/functions/register_post_type/#parameters).

In the Toolset UI, that option is set (or not) at the end of the Options section when editing a post type at Toolset > Post Types.

Please check that setting for the post types that appear to be missing from the REST API.

(The setting to enable the REST API in Toolset settings is for custom fields rather than post types, which are handled by core WP. The raw post meta is ordinarily available for post types that support the REST API, and the Toolset integration makes formatted custom fields available, too.)

#2424391

My issue is resolved now. Thank you!