Tweaked to build into a WordPress subdirectory