Note that there are some explanatory texts on larger screens.

plurals
  1. POwordpress add tags as p all time my code
    primarykey
    data
    text
    <p>I use a slider called revoslider and use as other sliders shortcodes for show this elements </p> <p>When I use the shortcode <strong>without using the visual editor to insert</strong> and save, the slider doesn't works because WordPress adds <code>&lt;p&gt;</code> tags into the javascript: </p> <pre><code>&lt;p&gt; &lt;script type="text/javascript"&gt;&lt;/p&gt; &lt;p&gt; var tpj=jQuery;&lt;/p&gt; &lt;p&gt; tpj.noConflict();&lt;/p&gt; &lt;p&gt; var revapi1;&lt;/p&gt; &lt;p&gt; tpj(document).ready(function() {&lt;/p&gt; &lt;p&gt; if (tpj.fn.cssOriginal != undefined) tpj.fn.css = tpj.fn.cssOriginal;&lt;/p&gt; &lt;p&gt; if(tpj('#rev_slider_1_1').revolution == undefined) revslider_showDoubleJqueryError('#rev_slider_1_1'); else revapi1 = tpj('#rev_slider_1_1').show().revolution( { delay:9000, startwidth:960, startheight:350, hideThumbs:200,&lt;/p&gt; &lt;p&gt; thumbWidth:100, thumbHeight:50, thumbAmount:2,&lt;/p&gt; &lt;p&gt; navigationType:"bullet", navigationArrows:"solo", navigationStyle:"round",&lt;/p&gt; &lt;p&gt; touchenabled:"on", onHoverStop:"on",&lt;/p&gt; &lt;p&gt; navigationHAlign:"center", navigationVAlign:"bottom", navigationHOffset:0, navigationVOffset:20,&lt;/p&gt; &lt;p&gt; soloArrowLeftHalign:"left", soloArrowLeftValign:"center", soloArrowLeftHOffset:20, soloArrowLeftVOffset:0,&lt;/p&gt; &lt;p&gt; soloArrowRightHalign:"right", soloArrowRightValign:"center", soloArrowRightHOffset:20, soloArrowRightVOffset:0,&lt;/p&gt; &lt;p&gt; shadow:2, fullWidth:"off",&lt;/p&gt; &lt;p&gt; stopLoop:"off", stopAfterLoops:-1, stopAtSlide:-1,&lt;/p&gt; &lt;p&gt; shuffle:"off",&lt;/p&gt; &lt;p&gt; hideSliderAtLimit:0, hideCaptionAtLimit:0, hideAllCaptionAtLilmit:0, startWithSlide:0 });&lt;/p&gt; &lt;p&gt; }); //ready&lt;/p&gt; &lt;p&gt; &lt;/script&gt;&lt;/p&gt; </code></pre> <p>Because of this the code never works and I don't understand why WordPress adds these <code>&lt;p&gt;</code> for each line, it's ridiculous</p> <p>I tried <code>add_filter</code> for content it still doesn't work. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload