I am creating an Android app using the WP API. I managed to show a custom post type in the REST API which can be viewed in:
Now I want to filter properties by their category, e.g.
,
,
, etc. I have tried the following, but it does not work:
Code:
http://localhost/wordpress/wp-json/wp/v2/property
Now I want to filter properties by their category, e.g.
Code:
villa
Code:
home
Code:
rent
Code:
http://localhost/wordpress/wp-json/wp/v2/property?filter[category_name]=villa`
http://localhost/wordpress/wp-json/wp/v2/property?filter[category]=apartment`