WordPress.org

Ready to get started?Download WordPress

Forums

ShortCodes UI
[resolved] Shortcode Attributes not being replaced? (2 posts)

  1. Triseult
    Member
    Posted 1 year ago #

    Hi!

    I love this plugin and I don't know anything else that feels as powerful and flexible!

    However, when I try to create a shortcode with attributes, it doesn't seem to be working... I am using the following HTML code in the ShortCode template section:

    <img alt="{AA}-{BB}" src="http://www.blah.com/icons/{AA}-{BB}.png"/>

    However, instead of using the values I specify from the post editor, I only get the DEFAULT value that I set when I create the shortcode.

    Any idea if this is a problem I can fix?

    Thank you!!

  2. Bainternet
    Member
    Plugin Author

    Posted 1 year ago #

    Yes,

    attributes must be in lowercase letters so change them in both the template and the attribute names.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic