All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Woocommerce Product don't return custom taxosonomy when using REST api

I created a custom taxonomy for woocommerece product. It's working fine in wordpress. but when I try to fetch it through REST (Javascript), it's missing. All other properties are returning but not ...
1
vote
1answer
28 views

WP REST API - Limit the taxonomy search to the first letter

I'm trying to make a A-Z index and would like to filter the response of my custom taxonomy by the first letter of the taxonomy name. So, if I have ['Ana', 'Olina', 'Ford'], i'd like something like wp-...
0
votes
0answers
37 views

How to get all the terms from a custom hierarchical taxonomy via REST api?

This post can be a solution, but I guess there could be something more linear or native: https://stackoverflow.com/questions/42462187/wordpress-rest-api-v2-how-to-list-taxonomy-terms The official ...
2
votes
3answers
553 views

Display sub-taxonomies based on SELECTED parent-taxonomy

I have two drop downs. The first one contains list of parent taxonomies from a custom post type. And the second one contains all the sub-taxonomies at a time. But I'm trying to display only those sub-...
0
votes
0answers
36 views

Relations between taxonomy terms for getting parent child nested Json objects and arrays

i have 2 taxonomies (cat) (subcat) and they have some terms(rows) for example , , i want make a relation like SQL data tables between the taxonomy terms for giving me a nested object of arrays in the ...
0
votes
1answer
2k views

Add Category Name to REST API

I am using the URL: http://website-url.com/wp-json/wp/v2/qd_leadership to get the data for that custom post type. I then created custom taxonomies for this post type. That only displays the taxonomy ...
0
votes
1answer
546 views

how to show product custom taxonomies in woocommerce rest api

I'm working with woocommerce rest API v1 to build a shop page working with AJAX. What I have tried : created custom taxonomies for woocommerce products post type set show_in_rest to true for those ...
1
vote
1answer
882 views

Wp Rest API request posts from a custom taxonomy

I'm trying to get posts from a custom taxonomy term in a custom post type but it is just displaying all the posts in the custom post type. I've tried using Filter in my endpoint url but I have a ...
3
votes
1answer
2k views

How do I Filter Custom Post Type by Custom Taxonomy in the newest Wordpress RESTful API?

I've a Custom Post Type called clock and a taxonomy called clock_category on my website. It is working well and All the clocks can be accessed from the REST endpoint https://myapp.dev/wp-json/wp/v2/...
5
votes
3answers
6k views

Custom post types filtered by taxonomy using REST API v2

I have the following situation: I created a custom Post Type names Works. And also attached to it custom taxonomy named Work Types Here is the code function rk_work_post_type(){ $labels = array( ...
2
votes
1answer
781 views

How to add custom fields to admin UI and REST API response?

I am new to custom WordPress development and am learning how to use the REST API endpoints to display post content onto a non-WordPress company intranet site. I have successfully been able to consume ...
1
vote
1answer
43 views

Retrieving an intersection of two terms from two different custom taxonomies via API

Running the current version of the API via the WP core and the rest-filter plugin I'm trying to retrieve a set of posts at the intersection of two terms from two different custom taxonomies. Initially ...
0
votes
2answers
2k views

Create taxonomy with meta term using the WP Rest Api

I am trying to create taxonomy elements (the taxonomies are already registered) from the front end using the REST Api v2. I am able to do so except not able to save the meta fields from the taxonomies....
6
votes
1answer
10k views

WP REST API no longer supports filter param, so how do I get posts in a custom taxonomy?

All around the Interwebs I see advice from people who say that when you want to get posts in a custom taxonomy you should use the filter parameter, for example: https://example.com/wp-json/wp/v2/...
2
votes
1answer
3k views

register_rest_field for custom taxonomy fields that are assosiated with custom post type

I am trying to register a rest field for my custom taxonomy's custom meta fields. I followed the tutorial at Modifying Responses . The code worked great for adding a rest field for post meta data for ...
0
votes
1answer
2k views

WP REST API - get custom taxonomies based on terms & filter

I need to get the list of data's with taxonomy term property_category,based on this property_category having data's like apartment,house,office etc.For example localhost url given http://192.168.0....
0
votes
1answer
389 views

how to filter the data's comparison operators (>= & <=) & range between values using the WP REST API

I'm quit new for wordpress development. Working with property management website with mobile API Development. Here need to filter the data's for based on conditions like greater than and less than &...