Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 13th Oct 2014, 10:20 PM   #1
HyperActive Warrior
 
chaotic squid's Avatar
 
Join Date: 2013
Location: Milwaukee, WI
Posts: 328
Thanks: 28
Thanked 99 Times in 76 Posts
Default
Enable Shortcodes For WP Sections
Share on: 
fb share twitter share gplus share more share

Hello,

I'm not real familiar with coding, but I have an issue that maybe someone can help with.

I have a plugin that gets inserted into pages by shortcode. However, I'm having difficulty putting the plugin on the homepage because my homepage uses sections not pages. It works fine on default WP pages but not on homepage "sections." The plugin creator said I need to enable shortcodes for sections, but didn't tell me how to do that.

So my questions is, how can I get the shortcode to work for WP sections to? I'd appreciate any help, thanks!
chaotic squid is offline  
Unread 14th Oct 2014, 11:18 AM   #2
Software Developer
War Room Member
 
Nuke07's Avatar
 
Join Date: 2012
Location: Planet Earth
Posts: 516
Thanks: 69
Thanked 36 Times in 32 Posts
Default
Re: Enable Shortcodes For WP Sections
Share on: 
fb share twitter share gplus share more share

Originally Posted by chaotic squid View Post

Hello,

I'm not real familiar with coding, but I have an issue that maybe someone can help with.

I have a plugin that gets inserted into pages by shortcode. However, I'm having difficulty putting the plugin on the homepage because my homepage uses sections not pages. It works fine on default WP pages but not on homepage "sections." The plugin creator said I need to enable shortcodes for sections, but didn't tell me how to do that.

So my questions is, how can I get the shortcode to work for WP sections to? I'd appreciate any help, thanks!
Try it manually..

<?php echo do_shortcode('Your Shortcode here');?>

Nuke07 is offline  
The Following User Says Thank You to Nuke07 For This Useful Post:
Unread 14th Oct 2014, 02:50 PM   #3
HyperActive Warrior
 
chaotic squid's Avatar
 
Join Date: 2013
Location: Milwaukee, WI
Posts: 328
Thanks: 28
Thanked 99 Times in 76 Posts
Default
Re: Enable Shortcodes For WP Sections
Share on: 
fb share twitter share gplus share more share

ok but where do I put that? I tried putting that in a few areas but it doesn't seem to help
chaotic squid is offline  
Unread 14th Oct 2014, 03:57 PM   #4
WP Dev & Design
War Room Member
 
Join Date: 2011
Location: Earth
Posts: 787
Thanks: 92
Thanked 271 Times in 226 Posts
Blog Entries: 4
Default
Re: Enable Shortcodes For WP Sections
Share on: 
fb share twitter share gplus share more share

Originally Posted by chaotic squid View Post

...So my questions is, how can I get the shortcode to work for WP sections to? I'd appreciate any help, thanks!


This will depend on how the theme author created those "sections".
IF they are just wigetized areas you would need to enable shortcodes in widgets.

Add the following to your functions.php file:

Code:
add_filter( 'widget_text', 'shortcode_unautop');
add_filter( 'widget_text', 'do_shortcode');
NOTE: This may already be enabled in your theme.
You could test it by putting a short code into one of your widgets and see if it functions properly.
If it does, the code above is already in the theme.

Might be fastest to just ask the theme author directly.

As Nuke07 pointed out, you could put his code snippet directly into the php file to execute the shortcode but I would avoid hardcoding it like that or you'll have to manually edit the php file every time you want to make a change.
David V is offline  
The Following User Says Thank You to David V For This Useful Post:
Unread 15th Oct 2014, 01:03 AM   #5
HyperActive Warrior
 
chaotic squid's Avatar
 
Join Date: 2013
Location: Milwaukee, WI
Posts: 328
Thanks: 28
Thanked 99 Times in 76 Posts
Default
Re: Enable Shortcodes For WP Sections
Share on: 
fb share twitter share gplus share more share

hmm still not working, and neither the plugin creator or theme author won't help since the plugin creater says it's the theme and the theme author says it's the plugin. Pisses me off because I paid for both the plugin and theme but neither want to take responsibility and help
chaotic squid is offline  
Unread 15th Oct 2014, 01:12 AM   #6
WP Dev & Design
War Room Member
 
Join Date: 2011
Location: Earth
Posts: 787
Thanks: 92
Thanked 271 Times in 226 Posts
Blog Entries: 4
Default
Re: Enable Shortcodes For WP Sections
Share on: 
fb share twitter share gplus share more share

What's the theme and the plugin your using?
David V is offline  
The Following User Says Thank You to David V For This Useful Post:
Unread 15th Oct 2014, 01:21 AM   #7
HyperActive Warrior
 
chaotic squid's Avatar
 
Join Date: 2013
Location: Milwaukee, WI
Posts: 328
Thanks: 28
Thanked 99 Times in 76 Posts
Default
Re: Enable Shortcodes For WP Sections
Share on: 
fb share twitter share gplus share more share

Originally Posted by David V View Post

What's the theme and the plugin your using?
Theme is Brooklyn
WordPress - Brooklyn - Creative One Page Multi-Purpose Theme | ThemeForest

and plugin is Domains Names Checker for WordPress
WordPress - Domains Names Checker for WordPress | CodeCanyon
chaotic squid is offline  
Unread 15th Oct 2014, 02:45 AM   #8
HyperActive Warrior
 
chaotic squid's Avatar
 
Join Date: 2013
Location: Milwaukee, WI
Posts: 328
Thanks: 28
Thanked 99 Times in 76 Posts
Default
Re: Enable Shortcodes For WP Sections
Share on: 
fb share twitter share gplus share more share

Solved it!

Got someone on Elance to help. Seems like the issue was within the plugins main php file where there was a condition that it was only enabled on singular pages. Removed the condition and got it to work.

Thanks for all your help and suggestions though
chaotic squid is offline  
Unread 15th Oct 2014, 11:38 AM   #9
WP Dev & Design
War Room Member
 
Join Date: 2011
Location: Earth
Posts: 787
Thanks: 92
Thanked 271 Times in 226 Posts
Blog Entries: 4
Default
Re: Enable Shortcodes For WP Sections
Share on: 
fb share twitter share gplus share more share

Excellent! Glad you got it working.
David V is offline  
Closed Thread


Bookmarks

Tags
enable, sections, shortcodes


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 05:02 PM.