Skip to content

Instantly share code, notes, and snippets.

@amitpatelx
Created April 29, 2016 09:36
Show Gist options
  • Save amitpatelx/8719172e0ef0557696007dec9ce156ba to your computer and use it in GitHub Desktop.
Save amitpatelx/8719172e0ef0557696007dec9ce156ba to your computer and use it in GitHub Desktop.
Wordpress getPost response
{
"post_id": "11468",
"post_title": "Post with short sommary",
"post_date": {
"year": 2016,
"month": 4,
"day": 29,
"hour": 9,
"min": 20,
"sec": 12
},
"post_date_gmt": {
"year": 2016,
"month": 4,
"day": 29,
"hour": 9,
"min": 20,
"sec": 12
},
"post_modified": {
"year": 2016,
"month": 4,
"day": 29,
"hour": 9,
"min": 20,
"sec": 12
},
"post_modified_gmt": {
"year": 2016,
"month": 4,
"day": 29,
"hour": 9,
"min": 20,
"sec": 12
},
"post_status": "publish",
"post_type": "post",
"post_name": "post-with-short-sommary",
"post_author": "1",
"post_password": "",
"post_excerpt": "Short summary",
"post_content": "Added Short summary and featured image",
"post_parent": "0",
"post_mime_type": "",
"link": "http://45.55.93.109/2016/04/29/post-with-short-sommary/",
"guid": "http://45.55.93.109/?p=11468",
"menu_order": 0,
"comment_status": "closed",
"ping_status": "open",
"sticky": false,
"post_thumbnail": {
"attachment_id": "11464",
"date_created_gmt": {
"year": 2016,
"month": 4,
"day": 29,
"hour": 9,
"min": 8,
"sec": 58
},
"parent": 0,
"link": "http://45.55.93.109/wp-content/uploads/2016/04/20141107_180351.jpg",
"title": "20141107_180351",
"caption": "",
"description": "",
"metadata": {
"width": 3264,
"height": 2448,
"file": "2016/04/20141107_180351.jpg",
"sizes": {
"thumbnail": {
"file": "20141107_180351-150x150.jpg",
"width": 150,
"height": 150,
"mime-type": "image/jpeg"
},
"medium": {
"file": "20141107_180351-300x225.jpg",
"width": 300,
"height": 225,
"mime-type": "image/jpeg"
},
"large": {
"file": "20141107_180351-1024x768.jpg",
"width": 1024,
"height": 768,
"mime-type": "image/jpeg"
},
"post-thumbnail": {
"file": "20141107_180351-825x510.jpg",
"width": 825,
"height": 510,
"mime-type": "image/jpeg"
}
},
"image_meta": {
"aperture": 2.6,
"credit": "",
"camera": "GT-N7100",
"caption": "",
"created_timestamp": 1415383431,
"copyright": "",
"focal_length": "3.7",
"iso": "80",
"shutter_speed": "0.033333333333333",
"title": "",
"orientation": 1
}
},
"thumbnail": "http://45.55.93.109/wp-content/uploads/2016/04/20141107_180351-150x150.jpg"
},
"post_format": "standard",
"terms": [
{
"term_id": "6",
"name": "Classical",
"slug": "classical",
"term_group": "0",
"term_taxonomy_id": "6",
"taxonomy": "post_tag",
"description": "",
"parent": "0",
"count": 3,
"filter": "raw"
},
{
"term_id": "7",
"name": "Family",
"slug": "family",
"term_group": "0",
"term_taxonomy_id": "7",
"taxonomy": "post_tag",
"description": "",
"parent": "0",
"count": 4,
"filter": "raw"
},
{
"term_id": "5",
"name": "Gardening",
"slug": "gardening",
"term_group": "0",
"term_taxonomy_id": "5",
"taxonomy": "category",
"description": "",
"parent": "0",
"count": 3,
"filter": "raw"
},
{
"term_id": "2",
"name": "Movie",
"slug": "movie",
"term_group": "0",
"term_taxonomy_id": "2",
"taxonomy": "category",
"description": "",
"parent": "0",
"count": 3,
"filter": "raw"
}
],
"custom_fields": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment