Documentation | GeoBuddy Add-on for GeoDirectory
Introduction
GeoBuddy WPForms Integration connects
WPForms with GeoDirectory, so visitors
can contact a listing owner directly from the single listing page.
Install the add-on, create the ready-made form with one click, and place
a Contact Owner button on your listing template.
When a visitor submits the form, the add-on automatically detects
which listing they are viewing and sends the notification to that
listing owner’s email address.
What you can do with it
-
Prebuilt WPForms form: one-click install of a
ready-made “GeoDirectory Listing Contact” form. -
Popup or inline display: show a Contact
Owner button that opens a popup, or embed the form directly on
the page. -
Automatic listing detection: hidden fields are
filled from the current GeoDirectory listing. -
Owner email routing: the primary notification
goes to the listing owner, never to an address typed into the
form. -
Block and shortcode: use the GD >
WPForms block in listing templates, or the [gd_wpforms_contact]
shortcode anywhere. -
Popup customization: title, subtitle, width, and
style presets. -
Access control: show the form to everyone, only
logged-in users, or only logged-out visitors. -
Works with WPForms Lite: no paid WPForms plan is
required.
Best suited for
-
Business directories
-
Service provider listings
-
Real estate and rental directories
-
Lead generation directories
Note: This add-on follows the same workflow as
GeoBuddy Contact Form Integration, but uses WPForms.
Choose the one that matches the form plugin you prefer.
Requirements
| Requirement | Details |
|---|---|
| GeoDirectory | Must be installed and active. |
| WPForms | Must be installed and active (WPForms Lite is supported). |
| WordPress | Version 5.8 or higher (tested up to 7.0). |
| PHP | Version 8.0 or higher. |
Important: Both GeoDirectory and
WPForms must be active before you use this add-on.
Installation
-
Download the add-on from your WPGeoBuddy account.
-
In your WordPress dashboard, go to Plugins > Add New
> Upload Plugin, choose the ZIP file, and click
Install Now. -
Click Activate Plugin.
-
Make sure GeoDirectory and
WPForms are both active.
Quick Start: 3 Steps
| Step | What you do | Result |
|---|---|---|
| 1 | Install the prebuilt form | The “GeoDirectory Listing Contact” WPForms form is created. |
| 2 | Add the form to your listing template | A Contact Owner button appears on your single listing page. |
| 3 | Send a test inquiry | You confirm the message reaches the listing owner. |
Step 1: Install the prebuilt
form
-
In your WordPress dashboard, go to GeoBuddy > Settings
> WPForms Integration. -
Follow the step-by-step setup shown on the page.
-
Click Install Prebuilt Form.
This creates a ready-made GeoDirectory Listing
Contact form in WPForms. It already includes the hidden listing
fields and owner email routing the add-on needs.
Tip: You can open the form in WPForms afterwards to
change fields, labels, or the notification message.
Step 2: Add the form
to your listing page
Option A: GD > WPForms
block (recommended)
-
Go to Appearance > Editor > Templates and
open your GD Single (listing detail) template. If you
use a page builder, edit your listing detail template there. -
Click + to add a block, search for GD
> WPForms, and add it where you want the button to appear
(for example, near the contact details). -
In the block settings, choose the output type (popup button or
inline form) and set the button text. -
Click Save.
Option B: Shortcode
Paste the shortcode into a Shortcode block or widget
on your listing detail template.
[gd_wpforms_contact output=”button” text=”Contact Owner”]
Step 3: Test the contact form
-
Open any single listing page on your website.
-
Click the Contact Owner button. The contact form
opens in a popup. -
Fill in the form and submit it.
-
Check the listing owner’s inbox to confirm the notification
arrived.
Tip: For your first test, use a listing whose email
field contains an address you can check.
Shortcode Reference
Use [gd_wpforms_contact] to place the contact form anywhere on a
listing page.
Shortcode examples
| Type | Shortcode |
|---|---|
| Popup button (default) | [gd_wpforms_contact output=”button” text=”Contact Owner”] |
| Inline form | [gd_wpforms_contact output=”form”] |
| Only for logged-in users | [gd_wpforms_contact output=”button” text=”Contact Owner” user_access=”logged_in”] |
Shortcode attributes
| Attribute | Description |
|---|---|
| output | button shows a Contact Owner button that opens a popup (default). form shows the form directly on the page. |
| text | The label on the popup button, for example “Contact Owner”. |
| user_access | Who can see the form: all (default), logged_in, or logged_out. |
Output types
| Output | How it looks |
|---|---|
| Button (popup) | A button on the listing page. Clicking it opens the form in a popup window. Good for keeping the listing page clean. |
| Inline form | The full form is displayed directly inside the listing page. Good for lead-generation pages. |
Restricting access by user
| user_access value | Who sees the form |
|---|---|
| all | Everyone (default). |
| logged_in | Only logged-in users. Logged-out visitors are redirected to the login page. |
| logged_out | Only visitors who are not logged in. |
Popup Customization
When the output type is Button, you can customize
how the popup looks. In the GD > WPForms block
settings, you can change:
-
Title: the heading at the top of the
popup. -
Subtitle: the line under the title.
-
Width: how wide the popup opens.
-
Style presets: ready-made looks for the
popup.
Tip: Keep the title short and clear, for example
“Contact Owner” or “Request a Quote”, so visitors know exactly what the
form does.
Email Routing and Security
The add-on detects the current listing through hidden fields in the
form. The primary notification is then sent to that listing owner’s
email, which is read on the server from GeoDirectory.
Email addresses typed into the form are never used as
the recipient.
This keeps your forms from being misused to send messages to
arbitrary addresses, and makes sure each inquiry reaches the right owner
automatically.
Important: Keep the prebuilt form’s hidden listing
fields in place. They are how the add-on knows which listing the visitor
is contacting.
Frequently Asked Questions
Do I need a paid WPForms plan?
No. The add-on works with WPForms Lite.
How is this different from the Contact Form 7
integration?
It follows the same workflow (prebuilt form, popup button, owner
email routing, and a block for listing templates), but uses WPForms.
Pick the form plugin you prefer.
Where should I place the contact form?
On your GeoDirectory single listing (detail) template. Add the
GD > WPForms block to the template, or use the
[gd_wpforms_contact] shortcode.
Who receives the message, and can a visitor change
it?
The listing owner receives it. The owner email is read on the server
from GeoDirectory, and email addresses submitted through the form are
never used as recipients.
Can I show the form without a popup?
Yes. Set the output to form, for example [gd_wpforms_contact
output=”form”], to embed the form directly on the listing page.
Can I show the form only to logged-in users?
Yes. Use user_access=”logged_in”. Logged-out visitors are redirected
to the login page when logged-in access is required. The other values
are all (default) and logged_out.
