[protect][/protect] appears around script
-
Hello Eliot,
The storm of the WP 4.2.3 update is over, isn’t it? CCS 2.7.1 looks like a stable version (for me)…
I experience only one small issue. I wrote about it in the last thread I started (about the content shortcode in a post-template file), but maybe you missed it.
From version 2.6.8 there appears a visible shortcode
[protect][/protect]
above some content. When I look into the html source code, I see the shortcode appears around<script>...</script>
. But not around all scripts. Only in the case when I get the content using a[content]
shortcode to get other shortcodes from a custom field.I use it like this:
In the (header) area where I see the
[protect]
shortcode. I use[content type="template" name="sponsor-carousel-header" field="html"]
.In the custom field “html” from the post (template) “sponsor-carousel-header” I have this code:
<script> $(document).ready(function(){ $('.sponsor-carousel-header').bxSlider({ auto: 'true', autoHover: 'true', speed: 700, pauze: 500, slideWidth: 200, moveSlides: 2, pager: false, minSlides: 2, maxSlides: 3, controls: false, slideMargin: 10, }); }); </script> <ul class="sponsor-carousel-header"> [loop type="sponsor" field="status_sponsor" value="actief" orderby="rand"] <li style="display: inline;"> <a href="[field website_sponsor]" target="_blank" title="[field title]">[field image="logo_sponsor" size="sponsor-logo-medium" image_class="aligncenter"]</a> </li> [/loop] </ul>
If I use
[js]
in place of<script>
, then the[protect]
shortcode disappears.Do you know what’s the cause is en how you can fix it?
Thanks in advance!
Peter
https://www.ads-software.com/plugins/custom-content-shortcode/
- The topic ‘[protect][/protect] appears around script’ is closed to new replies.