TheARWebEnquire Now

Project Overview

This project focused on building a location- and category-based directory for a pharmacy website.

The goal was to make pharmacy listings more relevant to visitors by connecting each listing with its appropriate location and category.

Instead of showing the same collection of pharmacies to every visitor, the directory structure was designed to narrow the listings according to the combination being explored.


The Challenge

Finding the right pharmacy for the right location

The website needed a structured way to organize pharmacy listings across different locations and categories.

A visitor looking for a pharmacy in a particular area should be able to reach listings relevant to that location without having to search through unrelated businesses.

The system therefore needed to connect:

The challenge was keeping these relationships manageable while allowing the directory to grow.


The Solution

Matching pharmacy listings by location and category

I built the directory around the relationship between location, category and pharmacy listing.

The visitor’s journey is based on the combination they are exploring:

Location
   +
Category
   ↓
Matching Pharmacy Listings

For example:

Location: Mohali
Category: Pharmacy
        ↓
Relevant Pharmacies in Mohali

This allows the directory to show businesses that are actually relevant to the selected location and category.


How It Works

01 — Location

The directory identifies the location being explored.

02 — Category

The visitor’s selected category determines the type of business they are looking for.

03 — Matching

The system uses the location + category combination to determine the relevant pharmacy listings.

04 — Results

The corresponding pharmacies are displayed for that specific combination.

So the basic structure becomes:

Location
   ↓
Category
   ↓
Location + Category
   ↓
Matching Pharmacies

What I Built

Location-Based Listings

Pharmacy listings can be associated with their relevant locations so visitors can find businesses in the area they are interested in.

Category-Based Matching

The category is used together with the location to narrow down the relevant listings.

Location + Category Pages

The directory structure supports pages based on the combination of location and category rather than relying on one global pharmacy listing.

Dynamic URL Structure

The URL structure changes according to the selected location/category context, providing a clearer path to each directory view.

Relevant Business Results

The listing shown to the visitor is based on the selected combination rather than simply displaying every available pharmacy.


My Contribution

I handled the WordPress development and the directory logic required to connect pharmacy listings with their locations and categories.

My work included:


Technology

WordPress

PHP

Custom Post Types

Custom Taxonomies

WordPress Queries

Dynamic URLs / Permalinks