Viewing 1 replies (of 1 total)
  • Thread Starter Accountteam

    (@accountteam)

    Found it : https://codex.www.ads-software.com/Shortcode_API

    Apparently all I had to do was:

    [test categorie=”een” aantal=”twee”]

    <?php
    extract(shortcode_atts(array(‘categorie’ => ‘1’, ‘aantal’ => ‘2’), $atts));
    echo “categorie”. $categorie .”
    “;
    echo “aantal”. $aantal .”
    “;
    ?>

    I tried this, but the plugin itself has some caching issue. Deleting the shortcode and creating it again solved it.

Viewing 1 replies (of 1 total)
  • The topic ‘Use parameters in shortcode?’ is closed to new replies.