I’m using the Genesis Responsive Slider on a site for a client. It seems to be pulling shortcode if it’s within the first 75 characters of the post. Is there a way to disable the shortcode just in the slider?
Do you have a link to your site? It should be possible to turn of the filter that allows shortcodes to be rendered. It would be handy to see exactly what’s going on first before I suggest any code.
You’ll need something like:
But you’ll need to target it at just the content in the slider not all pages.
Alternatively could you use the excerpt in the slider instead of a content limit? This would then allow you to copy text into the excerpt but remove the shortcodes.
Thanks, Chris. The site is http://fabulesslyfrugal.com/. I don’t think they’ll go for the excerpts as they do up to 20 posts daily and have people working for them. So if we can avoid adding the extra step, that would be awesome.
This article has a section about changing the excerpt:
Coupled with my comment about unfiltering shortcodes it might help.
You could also do a preg replace on the excerpt that’s generated currently using the method in the above article to remove any content between [ and ] ie a shortcode:
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.