WordPress.org

Ready to get started?Download WordPress

Forums

Shortcodes Ultimate
[resolved] php template tag (2 posts)

  1. marujobhz
    Member
    Posted 2 years ago #

    hi, how i can insert a button shortcode in a header.php file? exists a template php tag to do it? thanks!

    http://wordpress.org/extend/plugins/shortcodes-ultimate/

  2. marujobhz
    Member
    Posted 2 years ago #

    ok, i found in another post:
    use this to add template tag

    <?php
    $my_button = '[gn_button link="http://www.xxx.com/" color="#cc0000" size="3" style="1" dark="0" square="1"] Button text! [/gn_button]';
    echo do_shortcode( $my_button );
    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic