• Resolved bebop1983

    (@bebop1983)


    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)
  • Plugin Support irinelenache

    (@irinelenache)

    Hi @bebop1983,

    Thank you for using MPG!

    Unfortunately, we cannot help you on issues related to custom code added for the plugin. If you need any assistance regarding the default functionalities of MPG, don’t hesitate to ask, and we’ll be happy to help!

    Best regards,

    Irinel

Viewing 1 replies (of 1 total)
  • The topic ‘MPG Loop with custom shortcode’ is closed to new replies.