#adminmenu a[href*="page=abddir-upgrade"]{color:#f59e0b;font-weight:600}#adminmenu a[href*="page=abddir-upgrade"]:hover{color:#d97706}'; } ); // Redirect Add New submenu click → dashboard with create form auto-open add_action( 'admin_init', function() { if ( isset($_GET['page']) && $_GET['page'] === 'abddir-add-new' && current_user_can('manage_options') ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only redirect, no state change wp_safe_redirect( admin_url('admin.php?page=abddir-dashboard&create=1') ); exit; } } ); // ─── Enqueue Admin Assets ───────────────────────────────────────────────────── function abddir_admin_enqueue( $hook ) { $screen = get_current_screen(); $screens = [ 'toplevel_page_abddir-dashboard', 'business-directory_page_abddir-settings', 'business-directory_page_abddir-docs', 'business-directory_page_abddir-support', 'business-directory_page_abddir-upgrade', ]; $is_abddir_screen = in_array( $hook, $screens ) || ( $screen && $screen->post_type === 'abddir_listing' ); if ( ! $is_abddir_screen ) return; wp_enqueue_style( 'abddir-admin-css', abddir_PLUGIN_URL . 'admin/css/admin.css', [], abddir_VERSION ); wp_enqueue_script( 'abddir-admin-js', abddir_PLUGIN_URL . 'admin/js/admin.js', [ 'jquery' ], abddir_VERSION, true ); wp_localize_script( 'abddir-admin-js', 'abddirAdmin', [ 'ajaxUrl' => admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('abddir_admin_nonce'), ]); } add_action( 'admin_enqueue_scripts', 'abddir_admin_enqueue' ); // ─── Main Router ────────────────────────────────────────────────────────────── function abddir_render_main() { if ( ! current_user_can('manage_options') ) { wp_die( 'You do not have permission to access this page.' ); } $view = sanitize_text_field( wp_unslash( $_GET['view'] ?? '' ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- display router, no state change $dir_id = intval( $_GET['dir_id'] ?? 0 ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- display router, no state change if ( $view === 'dir' && $dir_id ) { $directory = get_post( $dir_id ); if ( ! $directory || $directory->post_type !== 'abddir_directory' ) { echo '
Directory not found.
Directory and all its listings have been deleted.
orphaned listing permanently deleted.
stray listing reassigned.
stray listing permanently deleted.
No directories yet
Click + Add New Directory to create your first one.
Settings saved.
Directory created! Configure its settings below, then add listings via the Listings tab.
listing without a directory assignment.
Delete Orphanedlisting point to a deleted or invalid directory and need to be cleaned up.
Delete Stray Listing Reassign to First Directory| Logo | Category | City | Phone | Website | Actions | ||||
|---|---|---|---|---|---|---|---|---|---|
| Visit'; ?> | Edit Del | ||||||||
| No listings yet. Click + Add Listing to add your first one. | |||||||||
Everything in the free plugin, plus the power features organizations ask for most.
Every Pro plan includes a full year of updates and priority support. New to the plugin? Get started here.
Everything you need to set up and manage your Adler Business Directory.
[abddir_directory id="1"]) and paste it into any page or post.Choose the directory type in the Settings tab. Each type adapts the fields, labels, and display to match your use case.
| Type | Best For | Key Differences |
|---|---|---|
| 🏢 Business | Local businesses, service providers, vendor lists | Business-oriented labels; Website URL in contact info; contact name shown on cards |
| 👥 Member / Group | HOAs, clubs, associations, community groups, residents | People-oriented labels; Website URL moved to Social Media; Community/Township field available |
| 🪪 Employee | Staff directories, org charts, team pages | People-oriented labels; Job Title field displayed in the listings table |
💡 Tip: The directory type affects which fields appear on listing edit screens and how listings display on the public page.
Place any directory on any page with a shortcode:
[abddir_directory id="1"]Replace 1 with your directory's ID (shown on each directory card and in the Settings tab).
| Attribute | Default | Description |
|---|---|---|
id | first directory | Directory ID to display |
layout | from settings | grid or list |
per_page | from settings | Number of listings per page |
Example with overrides:
[abddir_directory id="2" layout="list" per_page="20"]Yes — create as many directories as you need from the Directories page. Each has its own settings, listings, and shortcode, and you can even place multiple directories on the same page.
Yes — the shortcode works on any page or post, and you can use it on several pages at once.
The search bar above the listings searches names live as visitors type. You can hide it in the Settings tab if you prefer a static list.
Listings display alphabetically by name.
Yes — assign categories on the listing edit screen (right-hand panel), then filter by category in the admin Listings tab. You can also show a single category on a page with [abddir_directory category="your-category"].
It takes you back to your directory's Listings tab.
Those are part of Adler Business Directory Pro.
We're here to help. Choose the best option below.
Step-by-step guides covering setup, listings, shortcodes, and more.
Browse DocumentationHave a question or found a bug? Send us a message and we'll respond within 1 business day.
Email SupportVisit our website for news, updates, and additional plugins and tools for your WordPress site.
Visit adlertechnology.com