• Resolved AMGCAT

    (@amgcat)


    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://ww.wp.xz.cn/extend/plugins/shortcodes-ultimate/

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

    (@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.

    Thread Starter AMGCAT

    (@amgcat)

    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 Vova

    (@gn_themes)

    Yes, this code works for all shortcodes

    Thread Starter AMGCAT

    (@amgcat)

    Thank you!!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Shortcodes Ultimate] Using Shortcodes inside theme’ is closed to new replies.