Skip to content

Instantly share code, notes, and snippets.

@panks
Created May 2, 2013 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panks/5502988 to your computer and use it in GitHub Desktop.
Save panks/5502988 to your computer and use it in GitHub Desktop.
JSON output by WordPress using new export.php (https://gist.github.com/panks/5502750).
{
"channel": {
"title": "GSOC 2013 Project",
"link": "http://localhost/wp/trunk",
"description": "Just another WordPress site",
"pubDate": "Thu, 02 May 2013 14:49:45 +0000",
"language": "en-US",
"wp:wxr_version": "1.2",
"wp:base_site_url": "http://localhost/wp/trunk",
"wp:base_blog_url": "http://localhost/wp/trunk",
"wp:author": [
{
"wp:author_id": "1",
"wp:author_login": "admin",
"wp:author_email": "pankajxdx@gmail.com",
"wp:author_display_name": "admin",
"wp:author_first_name": "",
"wp:author_last_name": ""
}
],
"wp:category": [
{
"wp:term_id": "4",
"wp:category_nicename": "tmpcat",
"wp:category_parent": "",
"wp:cat_name": "tmpcat"
},
{
"wp:term_id": "1",
"wp:category_nicename": "uncategorized",
"wp:category_parent": "",
"wp:cat_name": "Uncategorized"
}
],
"wp:tag": [
{
"wp:term_id": "2",
"wp:tag_slug": "post1",
"wp:tag_name": "post1"
},
{
"wp:term_id": "3",
"wp:tag_slug": "post2",
"wp:tag_name": "post2"
}
],
"wp:term": [
],
"item": [
{
"title": "Hello world!",
"link": "http://localhost/wp/trunk/?p=1",
"pubDate": "Sat, 13 Apr 2013 00:48:24 +0000",
"dc:creator": "admin",
"guid": "http://localhost/wp/trunk/?p=1",
"content:encoded": "Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!",
"excerpt:encoded": "",
"wp:post_id": "1",
"wp:post_date": "2013-04-13 00:48:24",
"wp:post_date_gmt": "2013-04-13 00:48:24",
"wp:comment_status": "open",
"wp:ping_status": "open",
"wp:post_name": "hello-world",
"wp:status": "publish",
"wp:post_parent": "0",
"wp:menu_order": "0",
"wp:post_type": "post",
"wp:post_password": "",
"wp:is_sticky": "0",
"category": [
{
"-domain": "category",
"-nicename": "tmpcat",
"-#cdata-section": "tmpcat"
}
],
"wp:postmeta": [
{
"wp:meta_key": "_wp_format_url",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_quote",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_quote_source",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_image",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_audio",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_video",
"wp:meta_value": "" },
{
"wp:meta_key": "_edit_last",
"wp:meta_value": "1" } ],
"wp:comment" : [
{
"wp:comment_id": "1",
"wp:comment_author": "Mr WordPress",
"wp:comment_author_email": "",
"wp:comment_author_url": "http://wordpress.org/",
"wp:comment_author_IP": "",
"wp:comment_date": "2013-04-13 00:48:24",
"wp:comment_date_gmt": "2013-04-13 00:48:24",
"wp:comment_content": "Hi, this is a comment.\nTo delete a comment, just log in and view the post's comments. There you will have the option to edit or delete them.",
"wp:comment_approved": "1",
"wp:comment_type": "",
"wp:comment_parent": "0",
"wp:comment_user_id": "0",
"wp:commentmeta": [
]
},
{
"wp:comment_id": "2",
"wp:comment_author": "admin",
"wp:comment_author_email": "pankajxdx@gmail.com",
"wp:comment_author_url": "",
"wp:comment_author_IP": "127.0.0.1",
"wp:comment_date": "2013-05-02 04:01:28",
"wp:comment_date_gmt": "2013-05-02 04:01:28",
"wp:comment_content": "This is second comment.",
"wp:comment_approved": "1",
"wp:comment_type": "",
"wp:comment_parent": "0",
"wp:comment_user_id": "1",
"wp:commentmeta": [
]
}
]
},
{
"title": "Sample Page",
"link": "http://localhost/wp/trunk/?page_id=2",
"pubDate": "Sat, 13 Apr 2013 00:48:24 +0000",
"dc:creator": "admin",
"guid": "http://localhost/wp/trunk/?page_id=2",
"content:encoded": "This is an example page. It's different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:\n\n<blockquote>Hi there! I'm a bike messenger by day, aspiring actor by night, and this is my blog. I live in Los Angeles, have a great dog named Jack, and I like pi&#241;a coladas. (And gettin' caught in the rain.)<\/blockquote>\n\n...or something like this:\n\n<blockquote>The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.<\/blockquote>\n\nAs a new WordPress user, you should go to <a href=\"http:\/\/localhost\/wp\/trunk\/wp-admin\/\">your dashboard<\/a> to delete this page and create new pages for your content. Have fun!",
"excerpt:encoded": "",
"wp:post_id": "2",
"wp:post_date": "2013-04-13 00:48:24",
"wp:post_date_gmt": "2013-04-13 00:48:24",
"wp:comment_status": "open",
"wp:ping_status": "open",
"wp:post_name": "sample-page",
"wp:status": "publish",
"wp:post_parent": "0",
"wp:menu_order": "0",
"wp:post_type": "page",
"wp:post_password": "",
"wp:is_sticky": "0",
"wp:postmeta": [
{
"wp:meta_key": "_wp_page_template",
"wp:meta_value": "default" } ],
"wp:comment" : [
]
},
{
"title": "This is a test post-1",
"link": "http://localhost/wp/trunk/?p=5",
"pubDate": "Sun, 28 Apr 2013 07:21:29 +0000",
"dc:creator": "admin",
"guid": "http://localhost/wp/trunk/?p=5",
"content:encoded": "Hi how are you, this is post -1",
"excerpt:encoded": "",
"wp:post_id": "5",
"wp:post_date": "2013-04-28 07:21:29",
"wp:post_date_gmt": "2013-04-28 07:21:29",
"wp:comment_status": "open",
"wp:ping_status": "open",
"wp:post_name": "this-is-a-test-post-1",
"wp:status": "publish",
"wp:post_parent": "0",
"wp:menu_order": "0",
"wp:post_type": "post",
"wp:post_password": "",
"wp:is_sticky": "0",
"category": [
{
"-domain": "post_tag",
"-nicename": "post1",
"-#cdata-section": "post1"
},
{
"-domain": "category",
"-nicename": "uncategorized",
"-#cdata-section": "Uncategorized"
}
],
"wp:postmeta": [
{
"wp:meta_key": "_wp_format_url",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_quote",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_quote_source",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_image",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_audio",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_video",
"wp:meta_value": "" },
{
"wp:meta_key": "_edit_last",
"wp:meta_value": "1" } ],
"wp:comment" : [
]
},
{
"title": "This is test post -2",
"link": "http://localhost/wp/trunk/?p=7",
"pubDate": "Sun, 28 Apr 2013 07:21:55 +0000",
"dc:creator": "admin",
"guid": "http://localhost/wp/trunk/?p=7",
"content:encoded": "Hi this is post -2",
"excerpt:encoded": "",
"wp:post_id": "7",
"wp:post_date": "2013-04-28 07:21:55",
"wp:post_date_gmt": "2013-04-28 07:21:55",
"wp:comment_status": "open",
"wp:ping_status": "open",
"wp:post_name": "this-is-test-post-2",
"wp:status": "publish",
"wp:post_parent": "0",
"wp:menu_order": "0",
"wp:post_type": "post",
"wp:post_password": "",
"wp:is_sticky": "0",
"category": [
{
"-domain": "post_tag",
"-nicename": "post2",
"-#cdata-section": "post2"
},
{
"-domain": "category",
"-nicename": "uncategorized",
"-#cdata-section": "Uncategorized"
}
],
"wp:postmeta": [
{
"wp:meta_key": "_wp_format_url",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_quote",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_quote_source",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_image",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_audio",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_video",
"wp:meta_value": "" },
{
"wp:meta_key": "_edit_last",
"wp:meta_value": "1" } ],
"wp:comment" : [
]
},
{
"title": "Img post",
"link": "http://localhost/wp/trunk/?p=12",
"pubDate": "Sun, 28 Apr 2013 20:34:54 +0000",
"dc:creator": "admin",
"guid": "http://localhost/wp/trunk/?p=12",
"content:encoded": "Hello this is image.",
"excerpt:encoded": "",
"wp:post_id": "12",
"wp:post_date": "2013-04-28 20:34:54",
"wp:post_date_gmt": "2013-04-28 20:34:54",
"wp:comment_status": "open",
"wp:ping_status": "open",
"wp:post_name": "img-post",
"wp:status": "publish",
"wp:post_parent": "0",
"wp:menu_order": "0",
"wp:post_type": "post",
"wp:post_password": "",
"wp:is_sticky": "0",
"category": [
{
"-domain": "post_format",
"-nicename": "post-format-image",
"-#cdata-section": "Image"
},
{
"-domain": "category",
"-nicename": "tmpcat",
"-#cdata-section": "tmpcat"
}
],
"wp:postmeta": [
{
"wp:meta_key": "_wp_format_url",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_quote",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_quote_source",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_image",
"wp:meta_value": "13" },
{
"wp:meta_key": "_wp_format_audio",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_video",
"wp:meta_value": "" },
{
"wp:meta_key": "_edit_last",
"wp:meta_value": "1" } ],
"wp:comment" : [
]
},
{
"title": "nature-wallpapers-background-winter-autumn-shrine-199432",
"link": "http://localhost/wp/trunk/?attachment_id=13",
"pubDate": "Sun, 28 Apr 2013 20:34:36 +0000",
"dc:creator": "admin",
"guid": "http://localhost/wp/trunk/wp-content/uploads/2013/04/nature-wallpapers-background-winter-autumn-shrine-199432.jpg",
"content:encoded": "",
"excerpt:encoded": "",
"wp:post_id": "13",
"wp:post_date": "2013-04-28 20:34:36",
"wp:post_date_gmt": "2013-04-28 20:34:36",
"wp:comment_status": "open",
"wp:ping_status": "open",
"wp:post_name": "nature-wallpapers-background-winter-autumn-shrine-199432",
"wp:status": "inherit",
"wp:post_parent": "12",
"wp:menu_order": "0",
"wp:post_type": "attachment",
"wp:post_password": "",
"wp:is_sticky": "0",
"wp:attachment_url": "http://localhost/wp/trunk/wp-content/uploads/2013/04/nature-wallpapers-background-winter-autumn-shrine-199432.jpg",
"wp:postmeta": [
{
"wp:meta_key": "_wp_attached_file",
"wp:meta_value": "2013\/04\/nature-wallpapers-background-winter-autumn-shrine-199432.jpg" },
{
"wp:meta_key": "_wp_attachment_metadata",
"wp:meta_value": "a:5:{s:5:\"width\";i:1920;s:6:\"height\";i:1080;s:4:\"file\";s:68:\"2013\/04\/nature-wallpapers-background-winter-autumn-shrine-199432.jpg\";s:5:\"sizes\";a:5:{s:9:\"thumbnail\";a:4:{s:4:\"file\";s:68:\"nature-wallpapers-background-winter-autumn-shrine-199432-150x150.jpg\";s:5:\"width\";i:150;s:6:\"height\";i:150;s:9:\"mime-type\";s:10:\"image\/jpeg\";}s:6:\"medium\";a:4:{s:4:\"file\";s:68:\"nature-wallpapers-background-winter-autumn-shrine-199432-300x168.jpg\";s:5:\"width\";i:300;s:6:\"height\";i:168;s:9:\"mime-type\";s:10:\"image\/jpeg\";}s:5:\"large\";a:4:{s:4:\"file\";s:69:\"nature-wallpapers-background-winter-autumn-shrine-199432-1024x576.jpg\";s:5:\"width\";i:1024;s:6:\"height\";i:576;s:9:\"mime-type\";s:10:\"image\/jpeg\";}s:14:\"post-thumbnail\";a:4:{s:4:\"file\";s:68:\"nature-wallpapers-background-winter-autumn-shrine-199432-604x270.jpg\";s:5:\"width\";i:604;s:6:\"height\";i:270;s:9:\"mime-type\";s:10:\"image\/jpeg\";}s:25:\"twentythirteen-image-post\";a:4:{s:4:\"file\";s:68:\"nature-wallpapers-background-winter-autumn-shrine-199432-724x407.jpg\";s:5:\"width\";i:724;s:6:\"height\";i:407;s:9:\"mime-type\";s:10:\"image\/jpeg\";}}s:10:\"image_meta\";a:10:{s:8:\"aperture\";i:0;s:6:\"credit\";s:0:\"\";s:6:\"camera\";s:0:\"\";s:7:\"caption\";s:0:\"\";s:17:\"created_timestamp\";i:0;s:9:\"copyright\";s:0:\"\";s:12:\"focal_length\";i:0;s:3:\"iso\";i:0;s:13:\"shutter_speed\";i:0;s:5:\"title\";s:0:\"\";}}" } ],
"wp:comment" : [
]
},
{
"title": "quot post",
"link": "http://localhost/wp/trunk/?p=15",
"pubDate": "Sun, 28 Apr 2013 20:37:44 +0000",
"dc:creator": "admin",
"guid": "http://localhost/wp/trunk/?p=15",
"content:encoded": "",
"excerpt:encoded": "",
"wp:post_id": "15",
"wp:post_date": "2013-04-28 20:37:44",
"wp:post_date_gmt": "2013-04-28 20:37:44",
"wp:comment_status": "open",
"wp:ping_status": "open",
"wp:post_name": "quot-post",
"wp:status": "publish",
"wp:post_parent": "0",
"wp:menu_order": "0",
"wp:post_type": "post",
"wp:post_password": "",
"wp:is_sticky": "0",
"category": [
{
"-domain": "post_format",
"-nicename": "post-format-quote",
"-#cdata-section": "Quote"
},
{
"-domain": "category",
"-nicename": "uncategorized",
"-#cdata-section": "Uncategorized"
}
],
"wp:postmeta": [
{
"wp:meta_key": "_wp_format_url",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_quote",
"wp:meta_value": "\"Give a man a mask and he'll tell the truth\"" },
{
"wp:meta_key": "_wp_format_quote_source",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_image",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_audio",
"wp:meta_value": "" },
{
"wp:meta_key": "_wp_format_video",
"wp:meta_value": "" },
{
"wp:meta_key": "_edit_last",
"wp:meta_value": "1" } ],
"wp:comment" : [
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment