Wp-API Image access
-
Hi All,
I want to show my featured image of post IONIC 3 app (in img tag) my json data is as bellow in bold. when I try to access it it gives me error. can you please confirm that is this sequence is right.
better_featured_image.media_details.sizes.thumbnail.source_urlJSON Data:
“better_featured_image”:{
“id”:117,
“alt_text”:””,
“caption”:””,
“description”:””,
“media_type”:”image”,
“media_details”:{
“width”:640,
“height”:1136,
“file”:”2017\/02\/blueandpink.jpg”,
“sizes”:{
“thumbnail”:{
“file”:”blueandpink-150×150.jpg”,
“width”:150,
“height”:150,
“mime-type”:”image\/jpeg”,
“source_url”:”https:\/\/appstudio.ie\/apps\/wp-content\/uploads\/2017\/02\/blueandpink-150×150.jpg”
},
The topic ‘Wp-API Image access’ is closed to new replies.