Plugin Directory

Changeset 1392794


Ignore:
Timestamp:
04/12/2016 09:32:09 AM (10 years ago)
Author:
nvaughan84
Message:

updated feed generator script

Location:
merchant-xml-feed-generator/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • merchant-xml-feed-generator/trunk/gmpf-generator.php

    r1343915 r1392794  
    6262            $feat_image = wp_get_attachment_url( get_post_thumbnail_id(get_the_ID()));
    6363
    64             if ( $price = $product->get_price_including_tax() ){
     64            if ( $price = $product->get_price() ){
    6565               $price = $price;
    6666            }
     
    8080                    $item .= '<title>'.get_the_title().'</title>';
    8181                    $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>';
    8383                    $item .= '<g:image_link>'.$feat_image.'</g:image_link>';
    8484                    $item .= '<g:product_type>'.$cat.'</g:product_type>';
     
    137137                $item .= '<title>'.get_the_title($product_id).'</title>';
    138138                $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>';
    140140                $item .= '<g:image_link>'.$image[0].'</g:image_link>';
    141141                $item .= '<g:product_type>'.$cat.'</g:product_type>';
  • merchant-xml-feed-generator/trunk/readme.txt

    r1343918 r1392794  
    4545== Changelog ==
    4646
     47= 1.2 =
     48* Fixed error when generating xml feed
     49
    4750= 1.1 =
    4851* Generated prices include Tax where applicable
Note: See TracChangeset for help on using the changeset viewer.