• Resolved yopyop22

    (@yopyop22)


    Hi,
    i want to add

    [widget id=”displaycategorieswidget-3″]

    I try

    <?php
    echo do_shortcode(‘[displaycategorieswidget-3]’);
    ?>

    and i see

    [displaycategorieswidget-3]

    can you tel lme what i make wrong ?

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

    (@yopyop22)

    sorri i fond

    <?php echo Widget_Shortcode::get_instance()->do_widget( array(
        'id' => 'text-2'
    ) ) ?>
Viewing 1 replies (of 1 total)

The topic ‘How to add shortcode in php’ is closed to new replies.