Calling a Rest API with parameters on button Click

@TomJNowell pointed you the way to go. You have to enqueue a JS file, and within this JS file you can use any technique to do the REST request, like an XMLHttpRequest object or the fetch API. The REST API itself, of course, is part of WordPress, and defined with register_rest_route(). It is also something … Read more

Query posts by custom taxonomy slug in WP REST API?

For the moment, I’ve created this workaround here thanks to this post here. It’s basically the same, just a little more general. Assuming a custom post type with the your_custom_post_type slug, and three custom taxonomies with these names here: first_custom_taxonomy_name second_custom_taxonomy_name third_custom_taxonomy_name The code below enables to query via their slug value if you query … Read more