• Resolved wprun

    (@wordpressrun)


    Is it possible to create a calculation?

    For example if I want to display a numeric value times 6, then the shortcode can do the calculation, something like this?
    %%value%% * 6

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter wprun

    (@wordpressrun)

    Or even better a variable like this
    %%valueX%% * X / %%valueY%%

    where I can setup the paremeter as a variable based on another paremeter

    ?

    Plugin Author vaakash

    (@vaakash)

    Hi @wordpressrun,

    Sorry for the delay.

    The main focus of the plugin is to create shortcodes for frequently used static content like HTML, CSS, JS.

    Adding dynaminicity is beyond the scope. That is equivalent to a mini programming language ??

    In case of this scenarios, I would recommend writing your own shortcode for use cases like this https://diveinwp.com/create-shortcode-in-wordpress-multiple-parameters/

    You can also use document.write function in JS.

    Thanks,
    Aakash

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Calculations’ is closed to new replies.