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

    (@shazdeh)

    Yes indeed. You could do:

    <?php echo do_shortcode( '[widget id="text-2"]' ); ?>

    Or, use this which is slightly faster:

    <?php echo Widget_Shortcode::get_instance()->do_widget( array(
        'id' => 'text-2'
    ) ) ?>

    Thread Starter GregW

    (@gwmbox)

    Cool, thanks ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding code directly in file, e.g. header.php’ is closed to new replies.