How to prevent wordpress from wrapping my javascript in tags -
I have WordPress 3.8.1 site I want to embed this javascript into a script tag in one page
at EASTBANKRATE, POLICEANDFIRERATE, WESTBANKRATE, calculateTax, calculateTax_Homestead, calculateTax_NoHomestead. EASTBANKRATE = 148.77; Westbanker = 14.96 6; I do this like this:
WESTBANKRATE = 149.66;
Which definitely gives an error:
Is there no way to annotify this javascript as markup? If not, would this JS get the page open without the opening of the wordpress behind it? Is there any way to add?
To prevent you from changing the new code from Wpautop filter must be disabled> & lt; P & gt; tag remove_filter ('the_content', 'wpautop'); Remove_filter ('the_excerpt', 'wpautop');
Another option is to not include any double line breaks in your javascript, although it can be difficult to manage. Officially WordPress recommends referencing external content if you have to include javascript in the post content:.
Comments
Post a Comment