riccardop 0 Report post Posted July 7, 2011 Hi, When I enter a nextgen gallery short code in the Banner Media field (Add HTML Media for the banner, e.g. Youtube embed code.) I then see the short code on the page rather then the gallery. If I inser the same short code in the Feature Media HTML field (Youtube, Flash etc... Feature Page Media HTML or Embed Code.) then the gallery shows fine in the page. Any idea on how to fix it? thanks Riccardo Share this post Link to post Share on other sites
riccardop 0 Report post Posted July 7, 2011 I tried adding add_filter( 'banner_media', 'do_shortcode'); to my functions.php but didn't work Share this post Link to post Share on other sites
cmunns 16 Report post Posted July 7, 2011 what if you wrapped your shortcode in this? do_shortcode('[your-code]'); Share this post Link to post Share on other sites
riccardop 0 Report post Posted July 8, 2011 Thanks Adam, but unfortunately didn't work for me. What I see now on the page is: do_shortcode('[nggallery id=13 sc_id="sc1" sc_id="sc1"]'); Riccardo Share this post Link to post Share on other sites
kastelic 6 Report post Posted July 8, 2011 Assuming your still doing this in functions.php not in the banner edit area try: echo do_shortcode('[nggallery id=13 sc_id="sc1" sc_id="sc1"]'); Share this post Link to post Share on other sites
riccardop 0 Report post Posted July 9, 2011 Opps, I was actually putting it in the Banner Media field. I tried to put it in the functions.php of my child theme. I tried with both: do_shortcode('[nggallery id=13 sc_id="sc1" sc_id="sc1"]'); and them echo do_shortcode('[nggallery id=13 sc_id="sc1" sc_id="sc1"]'); with the former I then see printed on the page [nggallery id=13 sc_id="sc1" sc_id="sc1"] In the latter I see the gallery printed above the header of every single page. Is there a way to make the banner section accept shortcodes like the other sections in Platform Pro? Thanks. All the best Riccardo Share this post Link to post Share on other sites
catrina 103 Report post Posted July 9, 2011 I'm not sure if shortcode can be put enabled in the banner media section since only HTML would be allowed. There is no HTML that can be added instead? Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
riccardop 0 Report post Posted July 9, 2011 Thanks Catrina, I need to place a nextgen gallery into a banner section and the only way to do this that I know is through shortcode. I don't think there is a way to do it through simple HTML. I'm able to do this with feature sections but I'm having problem with banner sections. All the best Riccardo Share this post Link to post Share on other sites
catrina 103 Report post Posted July 9, 2011 This documentation might be useful: http://codex.wordpress.org/Shortcode_API#Enclosing_vs_self-closing_shortcodes You can try add_shortcode instead of do_shortcode Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
riccardop 0 Report post Posted July 10, 2011 Thanks Catrina, "add_shortcode" Didn't work. Th strange thing is that I can add shortcodes to the banner title or to the banner content with no problems but not into the banner media that seems the most obvious place to inser shortcodes. It seems there is a bug in the platform pro code. Share this post Link to post Share on other sites
catrina 103 Report post Posted July 10, 2011 I'm not sure if it's a bug, but it's an irregularity. Have you tried deactivating your plugins? Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
riccardop 0 Report post Posted July 11, 2011 Hi, I tried deactivating all the plugins and no luck. Riccardo Share this post Link to post Share on other sites
Simon 248 Report post Posted July 11, 2011 FIxed in 1.5.2!! Will be released soon. Share this post Link to post Share on other sites
riccardop 0 Report post Posted July 12, 2011 thanks, That is great news! awesome theme by the way! Share this post Link to post Share on other sites
riccardop 0 Report post Posted July 13, 2011 Just updated to 1.5.2. Shortcodes on banner work like a charm!!! Thanks Simon! Share this post Link to post Share on other sites
christinawhite099 0 Report post Posted July 13, 2011 thanks ..that is great news... ========== web design Share this post Link to post Share on other sites