WordPress.org

Ready to get started?Download WordPress

Forums

ShortCodes UI
[resolved] nested shortcodes produces error (2 posts)

  1. desmillicious
    Member
    Posted 2 years ago #

    I am attempting to nest a php call for the_permalink into a shortcode

    my method is:

    1) create an advanced shortcode (named "php") with the php the_permalink(); code in the php section

    2) create a second simple one tag shortcode [named "sc1") with the [php] shortcode inside the shortcode template

    The shortcode template for "sc1" is:
    Tweet

    I then insert [sc1] at the bottom of the relevant wordpress posts but an error occurs:
    The value from [php] (the permalink) is printed at the top of the post outside of the rest of the values from [sc1]

    ie:
    http://thepermalink.com
    Tweet

    Unfortunately the site I am working on with this error is currently not live to public. But I would greatly appreciate help from the developer from what is an otherwise excellent plugin

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

  2. Bainternet
    Member
    Plugin Author

    Posted 2 years ago #

    One tag Shortcode can't have php code, only advanced shortcode can.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic