• Resolved ginescarrillo

    (@ginescarrillo)


    I’m using a plugin called Quiz Maker that uses the following shortcode: [ays_quiz id=”x”] where “x” is an integer. I’m trying to do:
    [ays_quiz id=”{{mpg_id}}”] where mpg_id is a column of integer numbers in the CSV file but it is not working. It does not detect {{mpg_id}} as an integer number. It seems the quiz maker plugin ‘starts working’ before the mpg plugin, so mpg plugin can’t change the value before the quiz maker plugin tries to create the quiz.

    Is there anyway to solve this? Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support irinelenache

    (@irinelenache)

    Hello @ginescarrillo,

    Can you confirm you used the quiz shortcode in the MPG template page?

    Also, if the issue persists, please send a screenshot with the template page so we can better debug this issue.

    Best regards,

    Irinel

    Thread Starter ginescarrillo

    (@ginescarrillo)

    Yes, I used the quiz shortcode in the mpg template. You can see it in the screenshot. If I change {{mpg_id}} and use a number, it works properly.
    Plugin Support AndreeaR

    (@andreearadacina21)

    Hey @ginescarrillo,

    Thank you for sharing additional information!

    I’ve run some tests, and I can confirm that it is feasible to incorporate the MPG shortcode within another shortcode as long as it is utilized on the template page.

    As an example, I’ve prepared a template page (https://vertis.d.pr/i/E5ZckV) where the quiz shortcode is employed, and {{mpg_id}} is provided as input. You can observe the successful outcome on this page: https://vertis.d.pr/i/BomkPW. Additionally, you can view the quiz itself at https://vertis.d.pr/i/3qt75t.

    If you have any further inquiries, please feel free to ask!

    Best regards,

    Andreea

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using mpg shortcode inside another shortcode’ is closed to new replies.