WordPress: Gallery Override from Theme Functions