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

  1. desmillicious
    Posted 4 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:

    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]


    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


  2. Bainternet
    Plugin Author

    Posted 4 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

  • ShortCodes UI
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic