Title: Custom Shortcode: Attribute Values Not Being Replaced
Last modified: August 30, 2016

---

# Custom Shortcode: Attribute Values Not Being Replaced

 *  Resolved [hydraglyph](https://wordpress.org/support/users/hydraglyph/)
 * (@hydraglyph)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/custom-shortcode-attributes-not-pulling-through-correctly/)
 * Hi,
 * I’ve created a shortcode with the slug **premium_player** as follows:
 *     ```
       <script type="text/javascript" src="http://cdn-static.liverail.com/js/LiveRail.AdManager.Flowplayer-5.4.6.1.plugin.js"></script>
   
       <!-- Flowplayer global options -->
       <script>
          flowplayer.conf = {
               'LR_PUBLISHER_ID': "73995",
               'LR_AUTOPLAY': "1",
               'LR_TITLE': "{{videoTitle}}",
               'LR_VIDEO_ID': "1",
               'LR_TAGS': "{{videoTags}}",
               'LR_CONTENT': "1",
               'LR_URL': "[LR_URL]",
               'LR_VIDEO_DURATION': "{{videoDuration}}",
               'LR_DESCRIPTION': "{{videoDescription}}",
               'LR_MUTED': "0",
                // add other optional LR_ params here
          };
       </script>
       <div class="flowplayer"
          data-key="$399222213207867"
          data-analytics="UA-56645510-1"
          style="background-color:#777"
          data-LR_PUBLISHER_ID="73995">
               <video autoplay="true">
                    <source type="video/mp4" src="{{videoUrl}}"/>
               </video>
       </div>
       ```
   
 * I’ve then built a shortcode using the button in the WYSIWYG editor as follows:
 * `[su_premium_player videourl="http://www.thepopjar.com/video/olympic-village.
   mp4" videodescription="These incredible images show what happens to an Olympic
   venue long after the closing ceremony is a distant memory." videoduration="63"
   videotags="olympics, photography, architecture" videotitle="This Is What Happened
   To 8 Famous Abandoned Olympic Venues After The Games Ended"]`
 * However, the generated HTML on the frontend of the site looks identical to the
   code I’ve entered into the shortcode. In other words, the attributes are not 
   being populated by the values I have declared in the shortcode.
 * Instead, they are pulling through as {{videourl}}, {{videodescription}}, {{videoduration}},{{
   videotags}}, {{videotitle}}.
 * This means the browser is looking for videoUrl at {{videourl}} instead of [http://www.thepopjar.com/video/olympic-village.mp4](http://www.thepopjar.com/video/olympic-village.mp4).
 * Do you know why this would be happening?
 * You can view the page where this code is here: [http://www.thepopjar.com/cool/happened-8-famous-abandoned-olympic-venues-games-ended/](http://www.thepopjar.com/cool/happened-8-famous-abandoned-olympic-venues-games-ended/)
 * [https://wordpress.org/plugins/shortcodes-ultimate/](https://wordpress.org/plugins/shortcodes-ultimate/)

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

 *  [Ulrich](https://wordpress.org/support/users/grapplerulrich/)
 * (@grapplerulrich)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/custom-shortcode-attributes-not-pulling-through-correctly/#post-6421784)
 * [@hydraglyph](https://wordpress.org/support/users/hydraglyph/) I was able to 
   integrate LiveRail with the [official Flowplayer plugin](https://wordpress.org/plugins/flowplayer5/)
   for a client. I could do that same for you. You can contact me via [my site](https://ulrich.pogson.ch/contact-me).
 *  Thread Starter [hydraglyph](https://wordpress.org/support/users/hydraglyph/)
 * (@hydraglyph)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/custom-shortcode-attributes-not-pulling-through-correctly/#post-6421932)
 * Thanks Ulrich but I’ve managed to resolve it.
 * For anyone else having the same issue, the problem was that I was adding the 
   attributes with capitalised letters which the plugin then changed to lowercase.
 * So I added {{attributeName}} and the plugin would save it as {{attributename]].
 * So when I used the capitalised version in the code, the plugin didn’t recognise
   it.
 * Hope that helps!

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

The topic ‘Custom Shortcode: Attribute Values Not Being Replaced’ is closed to new
replies.

 * ![](https://ps.w.org/shortcodes-ultimate/assets/icon-256x256.gif?rev=2547563)
 * [Shortcodes Ultimate - Content Elements](https://wordpress.org/plugins/shortcodes-ultimate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcodes-ultimate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcodes-ultimate/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcodes-ultimate/reviews/)

## Tags

 * [attributes](https://wordpress.org/support/topic-tag/attributes/)

 * 2 replies
 * 2 participants
 * Last reply from: [hydraglyph](https://wordpress.org/support/users/hydraglyph/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/custom-shortcode-attributes-not-pulling-through-correctly/#post-6421932)
 * Status: resolved