I’ve had good results through saving code in a custom field and using this plugin to insert the custom field’s content into the post
http://wordpress.org/extend/plugins/custom-fields-shortcode/
Thank you stvwlf but i can’t understand a thing.
if I have already my javas cript code, how can I put the code in a custum field?
I’m not so expert about this.
coul you give more informations please?
thank you
What I suggested is very simple.
It sounds like you are pasting your Javascript into a post in the WordPress editor.
Instead of pasting it into the editor, paste it into a new custom field, in the custom field section below the editor box.
Give the custom field a name – let’s call it MyJavascript for example.
After you’ve installed the plugin, in the place in the pots (in the editor) where you want the Javascript to be, type this instead
[cf]MyJavascript[/cf]
Then click the Update button.
That is a shortcode. Instead displaying [cf]MyJavascript[/cf] in the post, the plugin removes that and substitutes in its place the contents of the custom field, your Javscript. WordPress will not change anything in your Javascript, it simply inserts it in your post in that position when that post (or page) is displayed.
I tryed to do it but when I write a post I can’t see “the custom field section below the editor box”.
there are just two other fields belong to other plugins.
is there another section to configurate this plugin?
I really need to insert code in the post 😐
thank you again
the latest WordPress hides that section by default, sorry.
In the upper right corner of the screen, click Screen Options
Put a check in the Custom Fields box
It will now be visible.
ok, now is clear 😀
I could to do what I wanted do.
thank you very much stvwlf for your time and your suggestions!