How to display parent category with first level child in REST API
I want help on WP REST API
I want to display Categories with a first level child with some attributes. Here how it should look like:
{
Parent
"id": 3,
"name": "Football",
"slug": "football"
child {
"id": 5,
"name": "League",
"slug": "league"
}
}
Please, anyone help me…
Thanks
$299 Affordable Web Design WordPress
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.