Error in importing wordpress xml [closed]

White screen is a PHP error. Check your server’s error_log and see if there’s anything helpful, but you may not have permissions on PHP set up correctly to upload. (Also you should try doing this on 3.2.1 and not a two-major-release back version)

Fetching review value using wpdb class

You need to add the global $wpdb reference and also add the second parameter required for prepare(): global $wpdb; $post_id = $post->ID; $reviewScore = $wpdb->query( $wpdb->prepare( “SELECT review FROM {$wpdb->prefix}gdsr_data_article WHERE post_id = %d”, $post_id ) );

How to process shortcodes in XML-RPC

Explanation of the behavior A shortcode is meant to be processed during runtime (when rendering & displaying a post on the public facing view). It is absolutely not meant to be a pre-processor during saving the post. The receiver simply doesn’t have your parser (which is the function processing the shortcode) and therefore will get … Read more

Import External XML

Fetching the data To fetch your posts, you’d utilize the HTTP_API, fetch_feed() or SimplePie. This completely depends on how and from where you’re going to get the XML. Here’s one answer about the HTTP API](https://wordpress.stackexchange.com/a/73659/385) and another one. Storing & maintaining the data The main problem will be that you need a storage location. Therefore … Read more