make template friendly with wordpress