• 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_url

    JSON 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”
    },

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Wp-API Image access’ is closed to new replies.