Skip Navigation

[Gelöst] intermedary types don't return toolset-meta in wordpress api

Dies ist das technische Support-Forum für Toolset – eine Suite von Plugins zur Entwicklung von WordPress-Websites ohne PHP-Pogrammierung.

Jeder kann in diesem Forum lesen, aber nur Toolset-Kunden können darin Beiträge veröffentlichen. Der Toolset-Support arbeitet 6 Tage pro Woche, 19 Stunden pro Tag.

This topic contains 1 Antwort, has 2 Stimmen.

Last updated by Luo Yang vor 1 Jahr, 6 Monate.

Assigned support staff: Luo Yang.

Author
Artikel
#1552199

Tell us what you are trying to do?
I'm having a n to n relation modeled via toolset. the intermedary type contains a few custom fields that i want to export via the wp-rest api. the intermedary type is marked as "show in rest" and fetchable, without the custom fields though. The relations itselves are exposed with a custom rest endpoint (just the ids)

Is there any documentation that you are following?
yes, this one -> https://toolset.com/documentation/programmer-reference/toolset-integration-with-the-rest-api/

Is there a similar example that we can see?
No

What is the link to your site?
intermedary type example is fetchable under hidden link

#1553081

Luo Yang
Supporter

Languages: Englisch (English ) Vereinfachtes Chinesisch (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Hello,

I have tried it in my localhost, it works fine, I can see the custom fields of intermediate post type in the wp-rest api. Please check these:
Go to the Toolset -> Settings page and on Custom Content tab enable the REST API option.

See the document you mentioned above:
https://toolset.com/documentation/programmer-reference/toolset-integration-with-the-rest-api/

Das Forum „Toolset Professioneller Support“ ist für neue Themen und Antworten geschlossen.