Loop

  • Don’t put it in the loop

    I sat a couple of hours not understanding why my jQuery .toggle function didn’t work. Thanks to Scott Lowes answer on stackoverflow I realized that I put the script in the wordpress loop, making it run several times. Dough. See the answer here http://stackoverflow.com/questions/6731894/click-event-is-calling-twice-in-jquery