MPG Loop with custom shortcode
-
Hello,
I’ve created a shortcode function in my functions.php file, and I would like to wall it from a MPG loop, passing it a param, like this :
[mpg project-id="2" unique-rows="no" order-by="my_order" direction="asc" limit="5000"] [my_custom_shortcode_function link="{{mpg_link}}"] [/mpg]
The problme is that the shortcode is not interpreted, and instead, this loop displays literraly something like this :
[my_custom_shortcode_function link="https://my-first-link.com"] [my_custom_shortcode_function link="https://my-second-link.com"] [my_custom_shortcode_function link="https://my-third-link.com"] ...
Is it possible to make it work, and that my custom shortcode is interpreted within the MPG loop ?
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘MPG Loop with custom shortcode’ is closed to new replies.