🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 20, 2026

How to Build an A–Z Directory of Gravity Forms Entries With an Alphabet Filter

GravityExtra
How to Build an A–Z Directory of Gravity Forms Entries With an Alphabet Filter

Long lists of names are hard to scan. A member directory with three hundred businesses, a staff list, a glossary, a list of suppliers or a catalogue of courses: visitors usually know the first letter of what they are looking for, and they expect to click it. Printed directories have had thumb tabs for a century; on the web the same idea is the alphabet bar, a row of letters from A to Z above the list.

This tutorial shows how to build an A–Z directory of Gravity Forms entries with the Gravity Forms Alphabet Entry Filter Premium Add-on: an alphabet bar with counts above an entry list, letters that ignore “The” and accents, local alphabets such as Vietnamese or Cyrillic, and a directory page grouped by letter. The example is a fictional harbour-town business association that collects its member businesses with a Gravity Forms form.

A Member directory page of the Harbourside Business Association: an alphabet bar with All 37 and the letters A to Z, 0-9 and #, each with the number of businesses under it, B selected in blue, U, V, X and # greyed out with 0; below it the search box, a Category drop-down and a Frontend Entry View table showing 1 to 3 of 3 businesses: Bluewater Dive School, Brightside Dental and Brisk Laundry with category, town and phone
The alphabet bar above a Frontend Entry View table: letter B shows the three businesses that start with B, empty letters are greyed out.

The Example: a Member Directory

Businesses join the association through a form with the fields Business name, Category, Town, Contact person (first and last name), Phone, Website and About the business. The office approves each new member. The website needs a directory page where visitors can browse the members by name, search for a word such as “coffee”, and narrow the list by category. With 37 members today and more every month, an alphabet bar makes the list easy to browse on any screen.

Two details matter for a good directory. First, many names start with “The”: The Harbour Café should be under H, where people look for it, not under T. Second, some names start with accented letters, such as Émile’s Bakery or Öland Deli, and visitors who click E or O expect to find them. A simple “starts with” search gets both wrong.

Step 1: Show the Entries

The directory itself can be a Frontend Entry View view: a table with the business name, category, town and phone, a search box over the name and the description, a category drop-down and 5 to 100 entries per page. If you do not use that add-on, skip to Step 4: the A–Z Entries block shows the entries on its own.

Step 2: Create the Alphabet Filter

Open Forms → Alphabet Filters, click Add alphabet filter, name it “Member directory A–Z” and choose the form. On the settings screen choose Business name as the field that gives the letter and keep the English / Latin alphabet. Leave Ignore leading words ticked with the list the, a, an, and keep the “0–9” and “#” letters for names that start with a number or another character.

The Edit alphabet filter screen: name Member directory A-Z, form Member businesses, the Letters box with the field Business name, the alphabet English / Latin, a 0-9 letter, a # letter and leading words the, a, an; the Alphabet bar box with counts and greyed-out empty letters; the Frontend Entry View views box with Member directory ticked; the A-Z Entries block box with layout, fields, columns and access; and on the right a Letter preview with the bar, counts and example entries per letter
One screen for the letter field, the alphabet, the bar, the views and the A-Z Entries block, with a preview of the counts.

The letter preview on the right shows the result straight away: All 37, A 2, B 3, C 3 and so on, with two example entries per letter. “The Harbour Café” appears under H next to “Harbour Lights Optician”, “The Copper Kettle Tea Room” under C, and “24 Seven Locksmiths” under 0–9. Letters without members, such as U, V and X, are greyed out on the bar.

Step 3: Attach the Bar to the View

Tick the directory view under Frontend Entry View views and save. The bar now appears right above the view, under any text you placed before it. Click a letter and the table shows only the businesses of that letter; the “Showing x–y of z” line, the page links and the column sorting all follow. When the letter has more entries than fit on a page, the page links keep the letter, so page 2 of S is still S.

The bar and the view’s own search work together. A visitor who picks C and searches for “coffee” sees the C businesses that mention coffee, and the counts on the bar change to the number of coffee businesses under each letter. The same goes for the category drop-down: Food & drink plus S shows the bakery and the grill. The letter also applies to the CSV export of the view, so staff can download “all members under M” in one click.

The counts follow the view’s rules. If the view shows only approved members, the counts include only approved members; a members-only view shows no bar at all to visitors who may not see it. The counts never reveal entries that the view hides.

Step 4: A Directory Page Grouped by Letter

Sometimes the whole directory should be on one page, like a printed list: a heading for each letter, the names under it, and a bar at the top that jumps to the letter. Add the A–Z Entries block to a page and choose the alphabet filter. In the filter’s settings choose the Directory layout, pick up to six fields to show under each name (for example the first name, the business and the town) and one to four columns.

The association also has members who write their names in Vietnamese. A second alphabet filter on the contact person’s last name with the Vietnamese alphabet lists Đặng and Đỗ under Đ, Ân and Âu under Â, and Ưng under Ư, while tones are ignored, so Nguyễn is simply under N. Names from other scripts or with letters the alphabet does not have go to the “#” letter, or to the Latin letters after the alphabet if you tick Also show A–Z.

An A-Z Entries block grouped by the last name of the contact person in the Vietnamese alphabet: a bar with All 37, A, Ă, Â, B, C, D, Đ, E, Ê and the other letters with counts, empty letters greyed, and sections  with Ân and Âu, B with Bùi, C with Cao, D with Dubois and Dương, Đ with Đặng and Đỗ, each name followed by the first name, the business and the town
The A-Z Entries block as a directory in the Vietnamese alphabet: Đ, Â and Ư are letters of their own, tones are ignored.

For long lists the Filtered list layout is easier: the block shows one letter at a time with page links, and can open with all entries or with the first letter that has entries. Tick Only approved entries and members waiting for approval stay off the public page.

Why the Letter Is in the Address

Every letter of the bar is a normal link such as ?geaz12=m. The page is built on the server with only the entries of that letter, so the bar works without JavaScript, search engines can follow each letter, and visitors can bookmark or share “the businesses under M”. Greyed-out letters are not links, so there are no empty pages to crawl. Letters in the address are checked against the alphabet; anything else is ignored and the page shows all entries.

Local Alphabets and Custom Letters

The English / Latin alphabet folds accented letters into their base letter, which is what English-speaking visitors expect. Other languages have letters of their own: Spanish has Ñ after N, Danish and Norwegian end with Æ, Ø and Å, Swedish and Finnish with Å, Ä and Ö. Vietnamese has 29 letters including Ă, Â, Đ, Ê, Ô, Ơ and Ư. Russian and Ukrainian use Cyrillic, and Greek its own alphabet. Pick the one your visitors read.

For anything else, type your own letters in bar order. Letters can have two or three characters, such as CH and LL in traditional Spanish or DZS in Hungarian; they are matched before the single letter, so Chávez is under CH and Casa under C.

Fast Counts on Large Forms

Counting entries per letter could mean one search per letter, 28 searches for every page view. The add-on reads the letter field of all active entries of the form with one query, works out the letter of each entry once and keeps the result in a cache. The cache is refreshed as soon as an entry is added, edited, trashed or deleted, so a new member appears under the right letter on the next page view. Building the index for 50,000 entries takes well under a second.

Good Practices

  • Give the bar a clear field. A name or title field works best; for people use the last name part of a Name field.
  • List the leading words of your language. The, a and an for English; le, la, les and l’ for French; der, die and das for German.
  • Grey out rather than hide empty letters on short lists, so the bar keeps its familiar shape; hide them on very long alphabets.
  • Show counts when the list is small enough that numbers help visitors decide; turn them off for a cleaner bar.
  • Use the directory layout for lists up to a few hundred names and the filtered layout for longer ones.

Frequently Asked Questions

Does the bar need Frontend Entry View?

No. The A–Z Entries block and its shortcode work on their own. With Frontend Entry View the bar also filters its table, list and card views.

Which fields can give the letter?

Single line text, paragraph, drop down and radio buttons (by choice text), e-mail, website, phone, number, hidden, post title and the parts of Name and Address fields.

Does it slow the page down?

No. The letters of all entries are worked out with one query and cached until an entry changes; showing a letter adds one condition to the normal entry search.

Can I change the word “All”?

Yes, set your own text for the All link, for example the word in your language.

Which Gravity Forms version do I need?

Gravity Forms 2.9 or newer with WordPress 6.5 and PHP 7.4 or newer.

A to Z for Your Gravity Forms Entries

An alphabet bar with counts, local alphabets and a directory grouped by letter, for Frontend Entry View views or on any page.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr