WordPress.org

Support

Support » Plugins and Hacks » Shortcodes Ultimate » [Resolved] [Plugin: Shortcodes Ultimate] Using Shortcodes inside theme

[Resolved] [Plugin: Shortcodes Ultimate] Using Shortcodes inside theme

  • Hello,
    thank you for this great plugin.

    I have to add a box at the bottom of my posts, more than 600. Its going to be hard doing it manually so I wonder If i can put the shortcode box inside a template file.

    I have been using this but it does not work. I am not very good with code. 🙂

    <?php
    $my_box = '
    [gn_box]
       [gn_box title="Rectificación de datos" color="#f00"] blabla bla bla bla bla  and then a link inside shortcode <a title="Contacto" href="http://www.example.com/page/">enlace </a> [/gn_box]
    [/gn_box]
    ';
    echo do_shortcode( $my_box );
    ?>

    I have been using my_box as I see another post relating to this that was using my_tabs for the shortcode.

    Thank you

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Vladimir Anokhin

    @gn_themes

    Hello AMGCAT,

    try this code:

    <?php
    $my_box = '[gn_box title="Rectificación de datos" color="#f00"]blabla bla bla bla bla  and then a link inside shortcode <a title="Contacto" href="http://www.example.com/page/">enlace </a>[/gn_box]';
    echo do_shortcode( $my_box );
    ?>

    Also, with this code you need to enable Compatibility mode at plugin settings page.

    Thank you for your message.

    It works !!

    This code is going to work with all the shortcodes ?

    changing the name of the shortcode of course

    Thanks again, great plugin.

    Great Support!!

    Plugin Author Vladimir Anokhin

    @gn_themes

    Yes, this code works for all shortcodes

    Thank you!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: Shortcodes Ultimate] Using Shortcodes inside theme’ is closed to new replies.
Skip to toolbar