You are here:  » Shortcodes within Shortcodes


Shortcodes within Shortcodes

Submitted by danba on Mon, 2013-11-18 01:54 in

Hello,

I'd like to use [pto prices="Product Name"] with the product name fetched by another shortcode {link saved}. But I need it vice versa.

I'd be happy to get a solution for that!

Daniel

Submitted by support on Mon, 2013-11-18 09:26

Hello Daniel,

I may need to look into this further depending on the "greediness" with which shortcodes are processed at the top level by WordPress, but it could be as simple as modifying pto.php and looking for the following code at line 428:

  $pto_product = pto_common_normalise($v);

...and REPLACE with:

  $v = do_shortcode($v);
  $pto_product = pto_common_normalise($v);

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by danba on Tue, 2013-11-19 01:54

Perfect, that's it!

Thanks David