- This topic has 10 replies, 3 voices, and was last updated 9 years ago by
Tom.
-
AuthorPosts
-
March 11, 2017 at 1:28 am #290056
Andy
Hiya, I can see that shortcodes work in the Page Header ‘content’ section, but when I try to use one to show the content of a ‘Spot’ (‘Spots’ plugin) it just displays the shortcode notation. (I’m trying to use a Spot as it has the TinyMCE features for editing). Is this something I can fix at your end, or should I contact them? Cheers!
March 11, 2017 at 7:08 am #290129Leo
StaffCustomer SupportHi Andy,
No actions is needed to enable shortcode on GP’s end.
Make sure the shortcode has a function attached to it in order for it to render.Let me know if this helps.
March 11, 2017 at 10:18 am #290178Tom
Lead DeveloperLead DeveloperA good way to test is using it in your regular content.
March 11, 2017 at 1:13 pm #290205Andy
Hi Leo and Tom – thanks for the reply… the shortcode works fine when added to the main page content inside the TinyMCE box, but not in the Page Header box: See this test site: https://inspiredbusinessmarketing.com/dev/demo/test-page/
March 11, 2017 at 2:50 pm #290223Leo
StaffCustomer SupportSorry I could be wrong but “This is the content inside the ‘Spot’ looks like it’s inserted in the content?
It doesn’t have any of the plug’s class/ID that I can see…March 11, 2017 at 3:24 pm #290228Andy
Hi Leo – not sure I follow… I have added the shortcode [icitspot id=”20″] to BOTH the Page Header box and the page’s main TinyMCE edit box. So when the page is displayed, the main content shows what it should (the text: “This is the content inside the ‘Spot’”), but where I added the shortcode to the Page Header content box it just shows the shortcode text in white. I don’t understand how the shortcode works in one place but not the other.
March 11, 2017 at 3:51 pm #290229Tom
Lead DeveloperLead DeveloperHuh, that’s strange.
Can you share the function you’re using to create the shortcode?
March 11, 2017 at 4:45 pm #290236Andy
Hi Tom – it’s the shortcode to insert a ‘spot’ from the ‘Spots’ plugin: https://wordpress.org/plugins/spots/
March 11, 2017 at 8:46 pm #290253Tom
Lead DeveloperLead DeveloperHmm, not sure why it wouldn’t work, as the page header textarea runs through the do_shortcode() WordPress function.
Might be worth asking the developer of that plugin if it will only run inside the WP content and no where else.
March 12, 2017 at 1:03 am #290281Andy
Okay – will do. Thank you for looking, Tom 🙂
Edit: I have been able to get this to work by creating a custom shortcode to insert the Spot (with a parameter of the Spot’s name), but this relies on the user (client) typing it all in correctly. I shall persevere with the plugin authors.
March 12, 2017 at 7:36 am #290366Tom
Lead DeveloperLead DeveloperMust be something in their plugin preventing it.
Let me know what they say 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.