Top WooCommerce & WordPress Plugins › Forums › Product XML Feeds for WooCommerce › Full Product description in feed – Shortcode request
- Support forum for the Product XML Feeds for WooCommerce.
- This topic has 4 replies, 2 voices, and was last updated 5 years ago by
Tom Anbinder.
- AuthorPosts
-
November 23, 2018 at 4:31 pm #105577
Valdemir
GuestHello!
I need to make a feed, where it has specific fields, all shortcodes meet me, minus 1. I need to insert the whole description of the product and not just the short description. How can I do it? Is there any specific shortcode for this?
thankful
Valdemir
- This topic was modified 6 months, 2 weeks ago by
Omar.
November 25, 2018 at 11:50 pm #105578Hi Valdemir,
Thanks for the idea. We’ve just released new plugin version 1.4.0. After update you can use new
[alg_product_description]
shortcode in your feed, e.g.:<description>[alg_product_description]</description>
Also in v1.4.0 we’ve added more general
[alg_product_function]
shrotcode – you can get the description with this shortcode as well, e.g.:<description>[alg_product_function function="get_description"]</description>
Hope that helps. Please let me know if something is not working correctly.
P.S. If you like the plugin, please leave us a rating.
November 28, 2018 at 10:31 pm #105579Valdemir
GuestHello Tom Anbinder!
I used the short description [alg_product_description] and also tried the shortcode [alg_product_function function = “get_description”] , and continue with the error.
I already upgraded to version v1.4.0. You are loading the feed, but with error. Can you help me?
The error that is showing the time that loads the feed is described below:
This page contains the following errors:
error on line 3167 at column 31: StartTag: invalid element name
Below is a rendering of the page up to the first error.November 28, 2018 at 10:52 pm #105580Hi Valdemir,
Maybe you could give me the link to your generated XML file, or send it to me directly to [email protected]?
November 28, 2018 at 11:41 pm #105581In case if anyone else has similar issue – as we’ve figured out in private conversation – the problem was that inside a product description there were “less than” signs (e.g.:
<20dBm...
), which are incorrectly parsed as XML tags. Wrapping the shortcode inCDATA
seems to solve the problem, i.e.:<description><![CDATA[ [alg_product_description] ]]></description>
- This topic was modified 6 months, 2 weeks ago by
- AuthorPosts
- You must be logged in to reply to this topic.