initial code with Wordpress 3.5.1