appointment request form WordPress

Ngiti Dental: A Client-Ready WordPress Theme for Dental Clinics in the Philippines

Efraim Ray Efraim Ray 0 Comments
Website Showcase

Most clinics in Bukidnon take bookings through Messenger and phone calls, and their websites rarely show prices, hours or a clear way to ask for a slot. For this week's professional-practice website I built Ngiti Dental, a complete WordPress theme for a sample family dental clinic in Malaybalay City, with a working appointment request form, live opening hours and a tooth-chart service finder.

Ngiti is Filipino for smile. The clinic, its dentists and prices are fictional samples, but the theme is real: it installs from a zip, creates its own pages, and was tested end to end on WordPress 6.5 before I exported the static demo.

Type Professional Website
Stack WordPress Theme · PHP 7.4+
Frontend CSS + Vanilla JS
Version v1.0.0
License Free · GPL-2.0+
Ngiti Dental WordPress theme shown on a laptop and phone: clinic home page with tooth chart and appointment button

Try It: Request an Appointment

This is a compact slice of the clinic site on a phone. The badge uses the clinic's real schedule in Manila time. Open the menu, pick a day and a service, and send a request. Leave the mobile number wrong to see the validation.

ngitidental.example/appointment

Ngiti Dental StudioSample clinic · Malaybalay City

Clinic hours Mon–Fri 9–5, Sat 9–1

Request an appointment

Preferred day (Sundays closed)

Time

Build Footprint & Quality Checks

Clinic sites usually live on shared hosting and are opened on phones over mobile data, so I kept the theme light. These are the measured numbers from the v1.0.0 build:

7.0
Theme CSS
KB gzipped
5.2
Theme JS
KB gzipped
0
External Requests
no CDN, no jQuery
26
PHP Files Linted
php -l: 0 errors
128
Browser Checks
all passed (WP + static)

Technology Stack & Architecture Layers

Platform · PHP

WordPress 6.3+ Classic Theme

Page templates, Customizer API, three custom post types, shortcodes and an admin-post form handler. PHP is 64% of the code.

Design System · CSS

CSS Custom Properties

Colour, type and spacing tokens drive light and dark mode. Self-hosted Young Serif and Figtree fonts, responsive down to 360 px.

Front End · JavaScript

Vanilla JS & Intl

Mobile menu, theme toggle, a cache-safe open-now badge in Manila time, inline form validation and the FDI tooth finder.

SEO & Tooling · JSON / Python

Dentist JSON-LD + Static Export

LocalBusiness schema with opening hours, shared sample content in JSON, and a Python script that exports the live theme to GitHub Pages.

Key Architectural Decisions

Pillar 01

Enter It Once

Phone, address and hours live in the Customizer. The header, footer, sticky call button, hours table, open-now badge and JSON-LD all read the same values.

Pillar 02

A Careful Form Pipeline

Nonce, honeypot, sanitize, validate (PH mobile, open day, real service), rate limit, save a private request, email with wp_mail(), then redirect with a reference number.

Pillar 03

Cache-Safe Hours

PHP prints the weekly schedule; the browser decides "Open now" or "Opens Monday at 9:00 AM", so a cached page is never wrong about the lunch break.

Pillar 04

Demo Built From the Real Theme

The static demo is exported from the theme running on WordPress, not rebuilt by hand, so what clients click is what they get.

Form Validation, Open-Now Logic & Usage

Three real pieces of the theme: the server-side checks every appointment request passes, the browser function behind the open-now badge, and how a developer uses the theme's shortcodes and hooks.

// inc/appointment-form.php (inside ngiti_handle_request)
$errors = array();
if ( '' === $name || mb_strlen( $name ) > 80 ) {
    $errors[] = 'name';
}
if ( '' === $mobile ) {
    $errors[] = 'mobile';
}
if ( '' !== $raw_em && ! is_email( $email ) ) {
    $errors[] = 'email';
}
if ( 'appointment' === $type ) {
    $allowed = wp_list_pluck( ngiti_get_services(), 'title' );
    $allowed[] = __( 'Not sure / consultation', 'ngiti-dental-theme' );
    if ( ! in_array( $service, $allowed, true ) ) {
        $errors[] = 'service';
    }
    if ( ! ngiti_valid_date( $date ) ) {
        $errors[] = 'date';
    }
} elseif ( '' === $message ) {
    $errors[] = 'message';
}
if ( ! $consent ) {
    $errors[] = 'consent';
}
if ( $errors ) {
    $fail( $errors );
}
// assets/js/theme.js (runs in the visitor's browser)
    /** Pure status function (exported for tests): week = {1:[["09:00","12:00"],...],...}. */
function computeStatus(week, now, soonMin) {
    soonMin = soonMin || 30;
    var today = week[now.day] || week[String(now.day)] || [];
    for (var i = 0; i < today.length; i++) {
        var o = toMin(today[i][0]), c = toMin(today[i][1]);
        if (now.min >= o && now.min < c) {
            return { state: c - now.min <= soonMin ? 'soon' : 'open', at: c, offset: 0 };
        }
    }
    for (var k = 0; k < 8; k++) {
        var day = ((now.day - 1 + k) % 7) + 1;
        var r = week[day] || week[String(day)] || [];
        for (var j = 0; j < r.length; j++) {
            var start = toMin(r[j][0]);
            if (k > 0 || start > now.min) { return { state: 'closed', at: start, offset: k, day: day }; }
        }
    }
    return { state: 'closed', at: null, offset: 0 };
}
<!-- Put the forms on any page -->
[ngiti_appointment_form]
[ngiti_contact_form]

<!-- Customize > Clinic details > hours (24h, comma = lunch break) -->
Mon-Fri:  09:00-12:00,13:00-17:00
Saturday: 09:00-13:00
Sunday:   (empty = closed)

// Send every request to Google Sheets, SMS or a CRM
add_action( 'ngiti_request_received', function ( $ref, $lines, $type ) {
    wp_remote_post( 'https://script.google.com/macros/s/YOUR_ID/exec', array(
        'body' => array( 'ref' => $ref, 'details' => implode( "\n", $lines ) ),
    ) );
}, 10, 3 );

// Reuse the theme for a vet clinic
add_filter( 'ngiti_schema', function ( $data ) {
    $data['@type'] = 'VeterinaryCare';
    return $data;
} );

Development Roadmap & Milestones

Version 1.0.0 is released. The next milestones come straight from the project's roadmap:

1

v1.0.0: Complete Clinic Theme (Released)

Nine page templates, services and team post types, secure appointment and contact forms, Customizer clinic details, live hours, tooth finder, Dentist JSON-LD, dark mode and sample content.

2

Next: Real-Time Slot Picker

Show only free times by reading confirmed appointments, with staff able to block dates from wp-admin.

3

Planned: Tagalog & Cebuano

Translations built from the bundled .pot file so the whole site and its forms can switch language.

4

Planned: Holiday Closures

Closed dates in the Customizer that update the hours table, the open-now badge, the date check and the schema.

User Interface & Feature Showcase

18171615141312114847464544434241
Services Page

Tooth Finder on the FDI Chart

Tap tooth 16 and it names the upper right first molar and lists the services that usually apply.

Customize › Clinic details
Phone0917 555 0142
Mon–Fri hours09:00-12:00,13:00-17:00
Saturday09:00-13:00
Sunday(closed)
Requests tofrontdesk@clinic.example
wp-admin

Clinic Details in One Place

Hours with a lunch break, phone and Messenger feed every page and the schema.

[Ngiti Dental Studio] New request NGT-261023-R2LL
Name: Ana Dela Cruz
Mobile: 09175550199
Service: Check-up & Cleaning
Preferred date: 2026-10-24 (afternoon)
Patient: new
Email + Requests list

Every Request Saved and Emailed

The real email from the end-to-end test, also saved under Requests in wp-admin.

Project Links, Code & Documentation

Live Demo & Download

Click through all eleven pages of the sample clinic site, or get ngiti-dental-theme.zip from the release and install it under Appearance → Themes → Upload.

Open the Live Demo

GitHub Repository

Browse the source, download v1.0.0 or request a feature. The theme is free and open source under GPL-2.0-or-later.

View on GitHub

How It Was Built

A plain-language build log: the languages used, every step in order, the test results and the problems fixed along the way.

Read the Build Log
Engineering Takeaway

A Clinic Website That Books, Not Just Brochures

Patients want three things from a clinic website: is it open, how much, and how do I get a slot. Ngiti Dental answers all three on every page and gives the front desk a clean list of requests. Want one for your clinic, practice or office?

Frequently Asked Questions

Is the Ngiti Dental theme free to use?

Yes. It is free and open source under the GPL-2.0-or-later license, so you can use it on client sites and change the code. The bundled fonts use the SIL Open Font License.

Does it work on Blogger, or do I need WordPress?

It needs a self-hosted WordPress site (WordPress 6.3 or newer, PHP 7.4 or newer). It does not run on Blogger. You install it by uploading the zip under Appearance, Themes, Add New.

Where do appointment requests go, and is patient data sent anywhere else?

Each request is saved as a private post in your own WordPress dashboard and emailed to the clinic with wp_mail. Nothing is sent to outside services, and the theme loads no external fonts, scripts or trackers.

Can this website be customized for my business?

Yes. The clinic name, logo, colours, services, prices, team, hours and contact details are all editable, and the same templates fit a veterinary clinic, physical therapy clinic or law office.

How much does a website like this cost?

It depends on the number of pages, content, photos, hosting and how the forms should be delivered. Message me with what your clinic needs and I will send a quote.

Can you set this up for my business website?

Yes. I can install the theme, rebrand it with your logo, colours, services, team and hours, connect the forms to your email or Google Sheets, and hand over a site your staff can update. Contact me here.

Ngiti Dental Studio, its dentists, credentials, address, phone number and prices are fictional samples created for this showcase. The privacy notice and disclaimer are templates and should be reviewed for a real clinic.

Efraim Ray
Written by

Efraim Ray

Software Developer and AI Specialist. BS Information Technology graduate. I pride myself on being conscientious, attentive to detail, and always open to learning — because the best solutions come from listening, taking notes, and exploring what's next.

Comments