Jump to content


This topic is now archived and is closed to further replies.


Are plugin shortcodes supposed to be able to render if put into a text box section?

Recommended Posts


I'm almost 100% sure, but please help clarify--


I've added a Text Box section.


I can put in a PL shortcode like:


  1. [pl_modal title="Title" type="btn" colortype="info" label="Click Me!"]
  2. Some content here for the cool modal pop up. Labels, badges, and buttons can open them!
  3. [/pl_modal]


And that totally works.


But if I put a Plugin short code in like:


[rev_slider home] or  [nggallery id=1] -- then it does not work.


In the case of rev_slider -- nothing displays -- not even the shortcode, it's just a thin grey bar... looking like its trying to make the shortcode happen, but not succeeding.  (btw, I know there is a rev-slider section, but I want to take advantage of the WP Plugin's nicer GUI to set the elements that fly in etc so my client doesn't have to mess with divs and all that. 


In the case of the nggallery - it does trigger something in the shortcode, but unfortunately it just spits out a bunch of text, looks like the HTML gets stripped out:




[Show as slideshow]





So the question is, I guess --- are Text Boxes supposed to be able to render the shortcodes of plugins? 
I can get the plugin shortcodes to out put properly if instead of a text box, I just use a post loop and display it that way... but it would be way cool if I could just pop any short code into a text box vs. having to rely on the extra step of pulling in a page or post content.
Here is what it looks like live:


Share this post

Link to post
Share on other sites

Hi Jason,


I've had some weird experiences with DMS and shortcodes lately.  It's not DMS' fault, but the plugin behind the shortcode. 


On my dev site, I purchased a non-PL 3rd party slider. Used the shortcode, and no success. I went to WP.org, downloaded another non-PL slider, and it works a charm.  The difference? The first wasn't 3.6 compatible, and the 2nd was.


I noticed you're using Nextgen gallery. Well, NextGen has been having issues for lots of people.  Go to their site and use an earlier version or use the WP built in gallery from the Media Library.  That's great... love it.


If the plugin behind the shortcode has a javascript or jquery or even ajax error or an outdated version, it could break or not render correctly.  I try to remind everyone that DMS uses the most advanced technologies out there. Many follow suit, but other developers aren't so savvy, and so their products fail.  While Nextgen is very savvy, I suspect they're keeping their code a bit behind the times to accommodate the vast range of systems on which it's used.


My easiest solution, I'm sorry to say... is to find substitutes that are WP3.6 compatible.

Former PageLines Moderator, Food Expert and Raconteur

Share this post

Link to post
Share on other sites

Thanks for clarifying .. it's interesting that the Rev Slider ( as a WordPress Plugin -- NOT the Included Section) -works like a charm if it is pulled into the design on a page, via the Post Loop, but the same shortcode, put into the text box, does not work.


In my case, I created a page and called it "Home" -- then, in the WordPress admin -> Settings - General and set "has static page" to "Home."


With this done, I can use the "Post Loop" section allowing me to paste in the shortcode by going into the main WordPress admin --> Pages, edit "Home" and paste the short code in there.


Voila - via the "Post Loop" section it now displays. 


I had to do a little extra CSS work, as Post Loops get 15px of padding by default, so you'll also need to add this to your CSS if you want to use the Rev Slider's WordPress plugin (vs the section) -- and have it edge to edge:


#pl_areaaqiv1f .pl-content {padding: 0px;}


Note that you will likely need to do an inspect element via Firebug to find out the ID of the enclosing DIV - - and replace #pl_areaaqiv1f  with whatever your ID is.


I did the CSS this way so it would only remove the padding from the section containing my post loop - if you were to just use .pl-content {padding: 0px;} -- then you might find that things that look better with that padding are now edge to edge on the browser.



If you're wondering - why not just use the section? The reason is, that the WordPress plugin has more WYSWIG features to control the appearance/animation of the text & additional element overlays.


With the REV Slider Section, you've got to put in all into the  < div > codes ... easy for me, but not for my client :)

Share this post

Link to post
Share on other sites

I don't want to hijack this thread but I just posted a similar question re: SlideDeck2 here http://forum.pagelines.com/topic/29510-slidedeck2/


This is info seems hopeful for a work-around but right now I can't get DMS to save any changes I make which may or may not be related to what I'm trying to do! I just tried adding the post loop instead of the text box and it will not save. I'm pulling my hair out here.

Sheila Hoffman | Hoffman Graphics | Seattle

Share this post

Link to post
Share on other sites

I understand this is being looked into. 

Former PageLines Moderator, Food Expert and Raconteur

Share this post

Link to post
Share on other sites

  • Similar Content

    • jeomiland
      By jeomiland+
      Am following a couple of tutorials about making custom shortcodes and making them available in your site. They recommend to make a "my_custom_shortcode.php" file in wp-content folder so it survives Core wordpress and Theme updates. However, they then say to place a couple lines of code in the theme functions.php file. The one in pl-framework theme folder does not look like the best place to put that code and I can't see a shortcodes.php file in the theme.
      So where is the best place and way to add custom shortcodes to a Pl5 project?
      john erik
    • Jason
      By Jason+
      Any chance you can add anchors to the tabs shortcode (similar to ultimate shortcode plugin)?
      Just annoying having to use that plugin rather than pagelines one
      <h2>Tabs anchors</h2> [su_tabs] [su_tab title="Tab 1" anchor="First"] Tab 1 content [/su_tab] [su_tab title="Tab 2" anchor="Second"] Tab 2 content [/su_tab] [su_tab title="Tab 3" anchor="Third"] Tab 3 content [/su_tab] [/su_tabs] Use next links to switch this tabs <a href="#First">Open tab 1</a> | <a href="#Second">Open tab 2</a> | <a href="#Third">Open tab 3</a>  
    • Jason
      By Jason+
      Any solution to map section not rendering inside tab shortcode.
      (Map sits inside 3rd tab so map not visible on page load)
      Also this just seems to effect the map section. Map shortcode renders fine.
      I want to use the map section for finer control over markers and locations
      Renders fine if in first page.
    • bnapoli
      By bnapoli+
      On my site www.anewbeginning.com the "toggle" function mysteriously stopped working.  I have tried all browsers, tried disabling plugins, removing all the relevant CSS but still cant understand why it isn't working.
      The toggle is placed on this page: http://anewbeginning.com/?page_id=15965 and http://anewbeginning.com/?page_id=10779 but it does not display.
      On my other Platform5 websites, that exact code works fine: see here http://4aa.d11.myftpupload.com/?page_id=123
      Code is the same. Please help, thank you!
    • micstepl
      By micstepl+
      Pagelines seems to "disallow" the (a) usage and/or (display) of shortcodes.
      Specifically I need shortcodes in "description" of "tag/catagory" in order to display images/fontawsome, before a category.
      Please can you provide a fix for me to allow.