- This topic has 12 replies, 2 voices, and was last updated 4 years, 3 months ago by Tom.
March 31, 2017 at 8:00 am #299919Mustafa
I’m trying to get some shortcodes to display on a site but in order for that to happen I need to use the plugin’s page template, however that template is not showing up in the page attributes box.
On another site with a different theme installed the shortcodes are showing.
Just wondering why they are not showing on the site with Generate Press installed?GP Premium 1.2.96March 31, 2017 at 9:25 am #299970TomLead DeveloperLead Developer
Shortcodes are rendered in your content by WordPress, not the theme.
You shouldn’t need to use page templates to display them. If you wanted to do that, you would need to create new page templates in your child theme.
Where are you adding the shortcode right now?March 31, 2017 at 9:39 am #299980Mustafa
On the page that I want them to display on.
But I want to be able to display them on any page and post.
Just wondering why they are working with the other theme and not Generate Press.March 31, 2017 at 9:44 am #299982TomLead DeveloperLead Developer
So you’re adding the shortcode into the visual editor on your page where the rest of your content is placed?
Where’s the shortcode coming from? A plugin?March 31, 2017 at 10:52 am #300005Mustafa
The shortcode is being generated into the visual editor by the settings in the plugin.
The shortcodes effects display on this page – https://www.hypefreereviews.com/wp-sales-page-test/
But on this page with Generate Press they don’t show properly – https://www.mvcopy.com/sales-page-test/
I was told by the plugin publisher that I need to select the plugin template from the page attributes box on the page I am inserting the shortcodes into in order for the effects to display.April 1, 2017 at 12:48 am #300213TomLead DeveloperLead Developer
Does the plugin add the page template for you? I’m not sure how the theme is supposed to know when to use the template? Shortcodes should just work when in the WordPress editor, regardless of what theme you’re using.April 1, 2017 at 5:12 am #300257Mustafa
Yes, the plugin creates a template automatically which shows up in the page templates drop down options in the page attributes box with the other theme but it does not show up with Generate Press.
Could it be that some of the add on plugins with Generate Press are conflicting and over-riding the shortcode page template from being shown?April 1, 2017 at 8:25 am #300315TomLead DeveloperLead Developer
Hmm, definitely not. Shortcodes work in GP as they do in any other theme (using them here on this site).
Shortcodes are rendered by WordPress automatically as long as the content is rendered through the_content filter (which it always should be).
I’m not sure why the plugin you’re using is requiring a page template to render shortcodes, but it’s definitely not the most conventional way to do it.
I would have to see the code/test to plugin to see why they’re doing what they’re doing.April 1, 2017 at 11:26 am #300372Mustafa
I contacted the plugin publisher a week ago. Still waiting for a reply from them.
I can let you have a copy of the plugin if you are able to have a look at it for me. What’s the best way to get it to you?April 2, 2017 at 9:47 am #300706TomLead DeveloperLead DeveloperApril 2, 2017 at 11:26 am #300756Mustafa
Message just sent.
Thanks.April 4, 2017 at 8:54 am #301574Mustafa
Just to update you, the issue seems to be with the plugin.
Although it claimed to work with all themes, it clearly doesn’t.
I haven’t heard from the plugin support department of the plugin for over a week. I don’t think I’ll be wasting any more time.
I’ll just have to find another plugin that works.April 4, 2017 at 9:26 am #301600
- You must be logged in to reply to this topic.