Script to create archive for Wordpress