Title: shortcode code shows
Last modified: August 21, 2016

---

# shortcode code shows

 *  Resolved [vinchenze](https://wordpress.org/support/users/vinchenze/)
 * (@vinchenze)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/shortcode-code-shows/)
 * HI Mark,
 * I have the shortcode [mstw_ls_table league_id=slug] but it won’t activate in 
   the sidebar. All I see is the shortcode. When I copy/paste the shortcode in a
   post, it works fine. Ideas? It worked on a different site but I cannot figure
   out why not here.
 * Thanks for the great plugins.
 * V-
 * [http://wordpress.org/plugins/league-standings/](http://wordpress.org/plugins/league-standings/)

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

 *  Plugin Author [Mark O’Donnell](https://wordpress.org/support/users/markodonnell/)
 * (@markodonnell)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/shortcode-code-shows/#post-4069441)
 * Hi V-
    Are you adding the shortcode to a text widget? Do you simply see the shortcode
   text ([mstw_ls_table league_id=slug]) in the sidebar? If so, you need to add 
   the following to lines to your theme or child theme functions.php
 * > add_filter( ‘widget_text’, ‘shortcode_unautop’);
   >  add_filter( ‘widget_text’,‘
   > do_shortcode’);
 * Regards,
    -Mark
 *  Thread Starter [vinchenze](https://wordpress.org/support/users/vinchenze/)
 * (@vinchenze)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/shortcode-code-shows/#post-4069471)
 * You’re Amazing. Added the code and it works. If you don’t mind a follow up … 
   how do I make it span the width of the sidebar?
    Thanks again! V-
 *  Plugin Author [Mark O’Donnell](https://wordpress.org/support/users/markodonnell/)
 * (@markodonnell)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/shortcode-code-shows/#post-4069485)
 * Thanks V.
 * I believe the width of the table is set to 100%, so it’s limited by the width
   of the containing element, not by the plugin styles. If you send me a link to
   the page, I’ll inspect it and can probably tell you what to do.
    _[ [Signature moderated](http://codex.wordpress.org/Forum_Welcome#Signatures).]_
   Need help fast? Want to motivate me?[ Buy me some coffee.](http://shoalsummitsolutions.com)
 *  Thread Starter [vinchenze](https://wordpress.org/support/users/vinchenze/)
 * (@vinchenze)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/shortcode-code-shows/#post-4069486)
 * Thanks Mark,
 * Based on a previous post regarding a similar issue, I edited the css to add the
   width here and it now works great.
 * ‘.mstw-ls-table {
    border-collapse: collapse!important; border-spacing: 0px; 
   width: 100%; }’
 * However, I am wondering if there is a way to fix the player bio page so it doesn’t
   break up so bad on a mobile device. Seems everything else is just perfect now.(
   lincolntribe.com)
 * And thanks again for such great plugins! They are perfect for our site as we 
   don’t deal in hardcore stats.
 * V-
 *  Plugin Author [Mark O’Donnell](https://wordpress.org/support/users/markodonnell/)
 * (@markodonnell)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/shortcode-code-shows/#post-4069503)
 * Hi Vince-
    First, thanks for the coffee!! I appreciate it.
 * That’s right, I don’t set a width so you need to set it to 100% to fill the container.
   Good job.
 * I am not sure about the player profile on a small screen. Looks like your theme
   handles things pretty well. I may hardwire some sizes into that page, which is
   bad for resizing (or adaption, as they like to call it.) I am about turn my attention
   back to the Team Rosters plugin, so I’ll take a look.
 * -Mark
 *  Thread Starter [vinchenze](https://wordpress.org/support/users/vinchenze/)
 * (@vinchenze)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/shortcode-code-shows/#post-4069519)
 * I’m not a programmer so I can’t really figure out how to do it. But in looking
   at the roster page and seeing how the tables act responsively (which is very 
   well as far as I can see)…I was wondering if making the bio header (pic, name%#)
   somewhat similar, then maybe the # and name (and other details) could just fall
   below the pic thus not allowing text to wander off it’s area. (I reference the
   Coaching Staffs plugin) Coaching staff bio page looks like the photo stays up
   top. The name, staff position, experience and alma mater all fall below the pic
   when displayed on a mobile in portrait view and fits perfectly in landscape view.
   Looks good.
 * V-
 *  Thread Starter [vinchenze](https://wordpress.org/support/users/vinchenze/)
 * (@vinchenze)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/shortcode-code-shows/#post-4069522)
 * sorry Mark, seems I went off topic with the team roster plugin question
 *  Plugin Author [Mark O’Donnell](https://wordpress.org/support/users/markodonnell/)
 * (@markodonnell)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/shortcode-code-shows/#post-4069532)
 * That’s alright. You are on the right track. If you theme is responsive, you should
   be close. I just have to take a look at the single player profile page and see
   if I can adjust the code and the css a bit. I suspect I have a couple of things
   hardwired in there like widths in px instead of %, fonts (etc) in px but not 
   also rem, may an absolute position. I just have to dig back in. It’s actually
   up next so stay tuned.
    -Mark
 *  [Pinoy Basketball](https://wordpress.org/support/users/pinoy-basketball/)
 * (@pinoy-basketball)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/shortcode-code-shows/#post-4069667)
 * Hi,
 * where can I find the shortcode. i tried to make a league and added teams but 
   I cant find the short code so that i can put it in the page.. I tried to view
   the league but it’s error. I found Nothing. How can I use this plugin in for 
   my team standing. I read all the documentations and i didn’t get it. Thanks.
 * Yours,
 * Pinoy Basketball
 *  Plugin Author [Mark O’Donnell](https://wordpress.org/support/users/markodonnell/)
 * (@markodonnell)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/shortcode-code-shows/#post-4069668)
 * Hi Pinoy Basketball,
    Could I ask you to open an new thread for this question?
   Added on to closed threads confuses me and doesn’t benefit anyone trying to find
   answers. Thank you. -Mark

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

The topic ‘shortcode code shows’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/league-standings_aac2df.svg)
 * [League Standings](https://wordpress.org/plugins/league-standings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/league-standings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/league-standings/)
 * [Active Topics](https://wordpress.org/support/plugin/league-standings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/league-standings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/league-standings/reviews/)

## Tags

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

 * 10 replies
 * 3 participants
 * Last reply from: [Mark O’Donnell](https://wordpress.org/support/users/markodonnell/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/shortcode-code-shows/#post-4069668)
 * Status: resolved