Categories are not showing up according to the hierarchy

the categories can be order differently, it will depend of the arguments in the get_categories() function, once none is specified, it will assume the default. try this to have an idea: $cats = get_categories(); echo ‘<pre>’; print_r($cats); echo </pre>’; exit(); This will give you everything store in $cats variable. For example normally I use the … 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