Support » Plugin: Toolset Types - Custom Post Types, Custom Fields and Taxonomies » Filter JSON Response based on Meta Key and values
Im currently using a post type of Units with custom fields of “Floor Level” and “Building”. The custom fields are already registered in WP rest api and currently displaying the values correctly.
However i need to filter the JSON returned data based on custom query like this:
I hope to hear from you soon.
Maybe someone from the community here has more experience with it, but also, I cannot assist Custom Code on Types Plugin.
I can update you with some information:
1. Types can only show Post Types in the REST API yet, using the GUI Only.
2. We have this Plugin here, that is not an officially supported Addon but it was developed to integrate Toolset in the REST API.
Please acknowledge that this plugin receives no support.
3. Eventually, someone from the community who worked with Types and the REST API can help further here.
I am sorry to be of no great help with this custom code.
Thank you for your response. How can I use filter on multiple Toolset custom fields like on this link below?
I just checked now, with the author of the REST Plugin mentioned above, and we are sorry that we can’t see an easy way to do this. It will require a custom endpoint for such things.
- The topic ‘Filter JSON Response based on Meta Key and values’ is closed to new replies.