diff --git a/includes/class-syndication-wp-xml-client.php b/includes/class-syndication-wp-xml-client.php index a8d5ac15ca6e41b2b23febf52697380dd974f493..2cc4562f1d42460c0a430f2f6a4bad829ba1fa00 100644 --- a/includes/class-syndication-wp-xml-client.php +++ b/includes/class-syndication-wp-xml-client.php @@ -196,6 +196,8 @@ class Syndication_WP_XML_Client implements Syndication_Client { $tax_data = array(); $value_array = array(); + $item_fields['post_type'] = $this->default_post_type; + //save photos as enclosures in meta if ((isset($enc_parent) && strlen($enc_parent)) && ! empty( $enc_nodes )) : $meta_data['enclosures'] = $this->get_encs($item->xpath($enc_parent), $enc_nodes);