@tascam424 wrote:
HI folks .. I'm following a tutorial to try and learn about Ionic & WP Rest API https://audacitus.com/site/2017/03/02/wordpress-rest-api-to-ionic-2-converting-category-id-to-name/
It's a fairly simple tutorial and i managed to get it working very quickly. But i'm now trying to modify it to work with a Custom Post Type, which for the most part has been successful, with exception to converting category ID to Name.
At this stage i'm just trying to get it to show the listing-category ID as it would for post category in the original tutorial, unfortunately this is just displaying "null".
I've looked at the both the post & listing json is structured and they appear to be identical, i've even tried with "location" from listing json and it works, again it appears to be structured exactly the same as listing-category, so i really don't know were i'm going wrong.
I'm not sure what information you require to further investigate but any help would be greatly appreciated.
Posts: 2
Participants: 2