• Hallo,

    i have problems with the Product Title is missing in the XML feed. Where the title is fetched in the plugin?

    Bay be this here:

    // Basic Product Information.
    			$item->addChild( 'g:id', get_the_ID(), $ns );
    			$item->addChild( 'title' )->addCData( sanitize_text_field( get_the_title() ) );
    			$item->addChild( 'description' )->addCData( sanitize_text_field( $options['description'] ) );
    			$item->addChild( 'g:google_product_category', '', $ns )->addCData( sanitize_text_field( $options['category'] ) );
    			$item->addChild( 'g:product_type', '', $ns )->addCData( sanitize_text_field( $options['product_type'] ) );
    			$item->addChild( 'link', get_permalink() );

    https://www.ads-software.com/plugins/woocommerce-google-merchant-center-feed/

Viewing 2 replies - 1 through 2 (of 2 total)
  • michael42

    (@visiondimension)

    same problem here, all products have title but missed in XML.

    Thread Starter peppir

    (@peppir)

    I fixed it! I hade a problem with my wpSEO plugin. I changed in the wpSEO plugin the meta tag output to output over the theme. Then it was working fine, also a faster solution that’s better for seo.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Missing Product Title in XML feed’ is closed to new replies.