Skip Navigation

[Resolved] REST API not expose custom fields to toolset-meta for custom post type

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 9 replies, has 2 voices.

Last updated by Luo Yang 1 month ago.

Assigned support staff: Luo Yang.

Author
Posts
#1679529

I am unable to show the custom fields as per https://toolset.com/documentation/programmer-reference/toolset-integration-with-the-rest-api/ in the rest API.

I have added the required code (see image upload), however I do no see an API option to enable in the settings (see image).

#1680055

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

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

Hello,

The problem is in your screenshot:
https://toolset.com/wp-content/uploads/2020/06/1679529-2020_06_28_12_51_51.jpg
I don't see section "REST API", but it works fine in my localhost with a fresh WP installation + the latest version of Toolset plugins, see my screenshot REST-API.JPG

So the problem is abnormal, please check these:
1) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

2) deactivate all other plugins, and switch to wordpress default theme 2020, deactivate all custom PHP/JS code snippets, and test again

3) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

#1680611

I very much appreciate the reply. However, I am unable to do that on my production site as Toolset does not play well with disabling other plugins. I will try on my Staging site, but I have tried this before.

Can you tell me the database field to change to enable this so that I can just go fix it?

#1680617

BTW I have the latest version of all plugins and wordpress.

#1680623

As you can see from my staging site, I have disabled all of the plugins except toolset and changed to the default theme. Still not API option.

I also checked all of my other production sites that use Toolset and they also have no API option.

#1681315

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

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

Please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, also point out the problem page URL and view URL, I need to test and debug it in my localhost, thanks

#1683383

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

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

The database dump file your provided above is not valid, I get 404 error, and the full copy of backup package file is too large to download(4.3 G), it will take whole day to download it.

As I mentioned above, please provide the database dump file, you can put it into your own google drive disk, and share the link only.

And you can also provide the credentials + FTP access of your staging site in below private message box, so I can debug it in a live website, thanks

#1684489

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

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

Thanks for the details, I can login your staging site, and have upgraded Toolset Types plugin from old version 3.2.7 to the latest version 3.3.12, please test again, check if it is fixed, and you can also follow our document to upgrade all Toolset plugins to the latest version:
https://toolset.com/faq/how-to-install-and-register-toolset/#automatic-installation-once-you-have-types-plugin-installed

#1684725

Scratch all of that! Why am I not prompted to update to the latest version of toolset? Is it lo longer in the WordPress store?

#1684765

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

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

Yes, you are right, The Toolset Types plugin had already been removed WordPress store, see our blog post:
https://toolset.com/2019/04/toolset-types-removed-from-wporg/