Skip Navigation

[Gelöst] REST API not expose custom fields to toolset-meta for custom post type

This support ticket is created vor 3 Jahre, 9 Monate. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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/Hong_Kong (GMT+08:00)

This topic contains 9 Antworten, has 2 Stimmen.

Last updated by Luo Yang vor 3 Jahre, 9 Monate.

Assisted by: Luo Yang.

Author
Artikel
#1679529
2020-06-28_12-51-51.jpg
2020-06-28_12-52-07.jpg

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
rest-api.JPG

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
2020-06-29_16-04-33.jpg
2020-06-29_15-49-33.jpg

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

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

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

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

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/

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