Changeset 1392794
- Timestamp:
- 04/12/2016 09:32:09 AM (10 years ago)
- Location:
- merchant-xml-feed-generator/trunk
- Files:
-
- 2 edited
-
gmpf-generator.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
merchant-xml-feed-generator/trunk/gmpf-generator.php
r1343915 r1392794 62 62 $feat_image = wp_get_attachment_url( get_post_thumbnail_id(get_the_ID())); 63 63 64 if ( $price = $product->get_price _including_tax() ){64 if ( $price = $product->get_price() ){ 65 65 $price = $price; 66 66 } … … 80 80 $item .= '<title>'.get_the_title().'</title>'; 81 81 $item .= '<link>'.get_the_permalink().'</link>'; 82 $item .= '<description> '.strip_tags(get_the_content()).'</description>';82 $item .= '<description><![CDATA['.strip_tags(get_the_content()).']]></description>'; 83 83 $item .= '<g:image_link>'.$feat_image.'</g:image_link>'; 84 84 $item .= '<g:product_type>'.$cat.'</g:product_type>'; … … 137 137 $item .= '<title>'.get_the_title($product_id).'</title>'; 138 138 $item .= '<link>'.get_the_permalink($product_id).'</link>'; 139 $item .= '<description> '.strip_tags(get_the_content()).'</description>';139 $item .= '<description><![CDATA['.strip_tags(get_the_content()).']]></description>'; 140 140 $item .= '<g:image_link>'.$image[0].'</g:image_link>'; 141 141 $item .= '<g:product_type>'.$cat.'</g:product_type>'; -
merchant-xml-feed-generator/trunk/readme.txt
r1343918 r1392794 45 45 == Changelog == 46 46 47 = 1.2 = 48 * Fixed error when generating xml feed 49 47 50 = 1.1 = 48 51 * Generated prices include Tax where applicable
Note: See TracChangeset
for help on using the changeset viewer.