add wp scripts
parent
ecb61d1385
commit
c2e691a55f
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
touch wordpress.xml
|
||||||
|
cat wp-head.xml >> wordpress.xml
|
||||||
|
for f in `ls`;
|
||||||
|
do
|
||||||
|
cat ${f} >> wordpress.xml
|
||||||
|
done;
|
||||||
|
cat wp-bottom.xml >> wordpress.xml
|
|
@ -7,7 +7,7 @@
|
||||||
<description></description>
|
<description></description>
|
||||||
<content:encoded><![CDATA[${content}]]></content:encoded>
|
<content:encoded><![CDATA[${content}]]></content:encoded>
|
||||||
<excerpt:encoded><![CDATA[]]></excerpt:encoded>
|
<excerpt:encoded><![CDATA[]]></excerpt:encoded>
|
||||||
<#--<wp:post_id>$it.Id</wp:post_id>-->
|
<wp:post_id>${id}</wp:post_id>
|
||||||
<wp:post_date>${date}</wp:post_date>
|
<wp:post_date>${date}</wp:post_date>
|
||||||
<wp:post_date_gmt>${date}</wp:post_date_gmt>
|
<wp:post_date_gmt>${date}</wp:post_date_gmt>
|
||||||
<wp:comment_status>open</wp:comment_status>
|
<wp:comment_status>open</wp:comment_status>
|
||||||
|
@ -19,4 +19,4 @@
|
||||||
<wp:post_type>post</wp:post_type>
|
<wp:post_type>post</wp:post_type>
|
||||||
<wp:post_password></wp:post_password>
|
<wp:post_password></wp:post_password>
|
||||||
<wp:is_sticky>0</wp:is_sticky>
|
<wp:is_sticky>0</wp:is_sticky>
|
||||||
</item>
|
</item>
|
|
@ -0,0 +1,2 @@
|
||||||
|
</channel>
|
||||||
|
</rss>
|
|
@ -0,0 +1,35 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
|
||||||
|
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
|
||||||
|
<!-- You may use this file to transfer that content from one site to another. -->
|
||||||
|
<!-- This file is not intended to serve as a complete backup of your site. -->
|
||||||
|
|
||||||
|
<!-- To import this information into a WordPress site follow these steps: -->
|
||||||
|
<!-- 1. Log in to that site as an administrator. -->
|
||||||
|
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
|
||||||
|
<!-- 3. Install the "WordPress" importer from the list. -->
|
||||||
|
<!-- 4. Activate & Run Importer. -->
|
||||||
|
<!-- 5. Upload this file using the form provided on that page. -->
|
||||||
|
<!-- 6. You will first be asked to map the authors in this export file to users -->
|
||||||
|
<!-- on the site. For each author, you may choose to map to an -->
|
||||||
|
<!-- existing user on the site or to create a new user. -->
|
||||||
|
<!-- 7. WordPress will then import each of the posts, pages, comments, categories, etc. -->
|
||||||
|
<!-- contained in this file into your site. -->
|
||||||
|
|
||||||
|
<!-- generator="WordPress/3.3.1" created="2012-06-10 09:15" -->
|
||||||
|
<rss version="2.0"
|
||||||
|
xmlns:excerpt="http://wordpress.org/export/1.1/excerpt/"
|
||||||
|
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
||||||
|
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:wp="http://wordpress.org/export/1.1/"
|
||||||
|
>
|
||||||
|
<channel>
|
||||||
|
<wp:wxr_version>1.1</wp:wxr_version>
|
||||||
|
<wp:base_site_url>http://127.0.0.1/wordpress</wp:base_site_url>
|
||||||
|
<wp:base_blog_url>http://127.0.0.1/wordpress</wp:base_blog_url>
|
||||||
|
|
||||||
|
<wp:author><wp:author_id>1</wp:author_id><wp:author_login>admin</wp:author_login><wp:author_email>flashsword20@163.com</wp:author_email><wp:author_display_name><![CDATA[admin]]></wp:author_display_name><wp:author_first_name><![CDATA[]]></wp:author_first_name><wp:author_last_name><![CDATA[]]></wp:author_last_name></wp:author>
|
||||||
|
|
||||||
|
|
||||||
|
<generator>http://wordpress.org/?v=3.3.1</generator>
|
Loading…
Reference in New Issue