• keerthy

    (@keerthy)


    am using shortcode inside javascript it is working fine.
    when i am suppose to send dynamic parameter to that shortcode it is taking that dynamic parameter as string . it is not going properly .how can i use it.

    example:(inside javascript)
    var x= 1;
    “[shortcode text=1]” it is going properly
    “[shortcode text=” + x + “]” this not taking parameter as 1, it is taking as + x+;

    please give me a solution

    https://wordpress.org/plugins/shortcode-exec-php/

The topic ‘use shortcode in javascript function’ is closed to new replies.