You are here:  » Shortcodes


Shortcodes

Submitted by ivohofland on Wed, 2013-05-22 14:30 in

Hi David,

I wanted to add some products I've choosen on a page with this shortcode:

[pto product="Product Name"]

But if I place this shortcode multiple times on the same page only the first product is showing in all the tags. Is this suppose to happen and is there some trick to display multiple sets of products on a single wordpress page?

Kind regards,

Ivo

Submitted by support on Wed, 2013-05-22 14:36

Hello Ivo,

Ooops - I made some code changes in version 2.0 that will cause this, apologies for the inconvenience. To fix, if you edit pto_product.php and look for the following code at line 369:

if (!isset($pto_productResults)) pto_product_query();

...and REPLACE with:

pto_product_query();

(corrected in the distribution)

Cheers,
David.
--
PriceTapestry.com

Submitted by ivohofland on Wed, 2013-05-22 20:31

Thank you again, works great.