What is the required format for importing posts into WordPress?

Here is an import file where only a few settings are used (although you may be able to exclude even more), which successfully imports three posts (tested on WP 4.2.2): <?xml version=”1.0″ encoding=”UTF-8″ ?> <rss version=”2.0″ xmlns:excerpt=”http://wordpress.org/export/1.2/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.2/” > <channel> <wp:wxr_version>1.2</wp:wxr_version> <item> <title>My first post</title> <dc:creator><![CDATA[admin]]></dc:creator> <description></description> <content:encoded><![CDATA[ <p>Welcome to my first … Read more

Import WordPress xml file larger than 8mb

OPTION 1: If a WordPress WXR file, an XML file exported from WordPress, is too large to import, there are several things you might try to overcome that limit. Increase the amount of memory a PHP script may consume. Note: If using a shared hosting service, you may need to ask your host to increase … Read more

How to add post featured image to RSS item tag?

You could do it by adding an action to the hook ‘rss2_item’ like so: add_action(‘rss2_item’, function(){ global $post; $output=””; $thumbnail_ID = get_post_thumbnail_id( $post->ID ); $thumbnail = wp_get_attachment_image_src($thumbnail_ID, ‘thumbnail’); $output .= ‘<post-thumbnail>’; $output .= ‘<url>’. $thumbnail[0] .'</url>’; $output .= ‘<width>’. $thumbnail[1] .'</width>’; $output .= ‘<height>’. $thumbnail[2] .'</height>’; $output .= ‘</post-thumbnail>’; echo $output; });

WordPress WXR Specification

I posed this question to John O’Nolan, a WordPress core developer, who forwarded my question to core committer Aaron Jorbin. O’Nolan responded by saying (I’m paraphrasing) that there isn’t any official documentation on the WXR standard, but that reverse engineering a WXR export should give me all the information I need. O’Nolan also noted that … Read more

Android Studio 2.2.3: Gradle project sync failed. Basic functionality (e.g. editting, debugging) will not work properly

Your gradle version is: 1.8 which is not working anymore so you probably have to update it: 1- Go to -> https://gradle.org/install check out the latest verion number. 2- In your project directory navigate to \gradle\wrapper\ directory and edit: gradle-wrapper.properties file. change: to: https://services.gradle.org/distributions/gradle-3.3-all.zip 3- go to Tools→Android→Sync Project with Gradle files 4- If sync doesn’t do the job restart Android studio