treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Using JavaScript in WordPress posts...

  • So what is the definitive best practice for using JavaScript in WordPress posts, aside from creating an infinite amount of Templates?

    Placing it in the HTML tab causes a slew of problems for me, because of the P tags WordPress insists on inserting.

    My site contains a lot of posts with JavaScript. : -/

  • I think best practice is to if at all possible no use JS inline. Are you doing a lot of repetitive tasks, or is it almost always something new?