• Hi,

    Is it possible to pass dynamic parameters to a shortcode?

    eg. this is my shortcode:

    [SHORTCODE_ELEMENTOR id=”675″ param1=”value1″ param2=”value2″]

    How can I render the values of param1 and param2 in my template to customize it?

    Thanks,

    Matteo Scannavini

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author SysBasics

    (@phppoet)

    looking into it and will update you soon.

    if things go well you will have a update

    Plugin Author SysBasics

    (@phppoet)

    Plugin already passing $atts to the shortcode ,

    have you tried with $atts[‘param1’] ? you have to use like

    <?php
    
    $param1_value = isset($atts['param1']) ? $atts['param1'] : "default_value";
    
    echo $param1_value;
    ?>

    best regards

    • This reply was modified 11 months, 3 weeks ago by SysBasics.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Passing parameters to shortcode’ is closed to new replies.