Code

Directories Pro plugin for WordPress

Directories Pro plugin for WordPress

Directories Pro for WordPress

Directories Pro is a WordPress plugin that lets you build any kind of directory such as a community driven local business directory like Yelp.com, Google+ Places, or Yahoo! Local, a user directory, a website directory, a property directory, etc. It’s the most feature rich and versatile directory plugin you can find for WordPress.

Directories Pro demo Directories Pro documentation
Directories Pro features

Feature list

Directory Management

  • Unlimited number of directories
  • Disable or enable categories/tags/locations/reviews/claims/payments per directory
  • Export and import directory settings
  • Export and import any directory content
  • Directory permission (capability) manager

Fully Customizable

  • Add custom fields to listings/reviews/claims (custom post types)
  • Add custom fields to categories/tags/locations (custom taxonomies)
  • Conditional fields
  • Use content display editor to customize appearance of content without any coding
  • Create full or partial template files for more control over display
  • Hide/show content by user roles

Search & Filter

  • Advanced search form with auto-suggestion
  • Fully customizable filter form with live updating facet count
  • Search and filter by custom fields
  • Search and filter by current location (geolocation)
  • Search form shortcode

Monetization

  • WooCommerce support – charge users for submitting new listings or claiming existing listings
  • Charge switch plan / re-activation fee
  • Prorated discount
  • Guest checkout
  • Create add-on plans for additional revenue
  • WooCommerce Subscriptions support

Frontend Submit and Dashboard

  • Submit listings/reviews from frontend
  • Manage listings/reviews/claims/votes through frontend directory dashboard
  • reCAPTCHA support
  • Guest posting without user registration
  • WooCommerce my-account page integration

Create Views

  • Display listings/reviews/categories/tags/locations in list/grid/masonry view
  • Show listings in photo slider
  • Configure custom query
  • Sort by custom fields
  • Display views anywhere with shortcode

Reviews

  • Customizable multi-criteria 5-star rating reviews
  • Filter and/or sort listings by review rating
  • Filter reviews
  • Search listings by review content
  • Show review rating statistics by stars or criteria

SEO Ready

  • Fully compatible with popular SEO plugins
  • Configure custom permalink URLs for listings/categories/tags/locations
  • Generate custom shema.org JSON-LD
  • Custom OpenGraph meta tags
  • Compatible with Yoast SEO and Breadcrumb NavXT breadcrumbs

Other Features

  • Display map (using Google Maps API or OpenStreetMap with Leaflet.js)
  • GDPR compliance
  • Claim listings
  • WPML support
  • Admin and user notification e-mails
  • Contact us form (supports Contact From 7, WPForm, Gravity Forms)
  • Online plugin update (no FTP required)

Other useful resources

Change log

v1.2.8 – NOV 12, 2018
- New: Charge users for claiming existing listings.
- New: "No payment plan" option can be added to payment plan selection form to bypass cart/checkout.
- New: Options to specify top offset for sticky and fullscreen mode maps.
- New: Options to specify filter button icon/label.
- Bug fixed: Some issues with taxonomy term caching.
- Bug fixed: Map marker not centered when showing single map marker with OpenStreetMap.
- Bug fixed: Some display issues with select taxonomy term dropdown.
- Bug fixed: Empty link in breadcrumb when content title empty.
- Bug fixed: WP All Import support not working for WP All Import Pro version.
- Bug fixed: Some issues with filters causing browser to freeze.

v1.2.7 – NOV 7, 2018
- Bug fixed: Some redirection issues with WPML.
- Bug fixed: Redirection issue with claiming listings after login/registration.
- Bug fixed: Unable to import Number type field values since v1.2.0.
- Improved: Show edit post page on normal page instead of in modal popup window.
- Added: New field renderer to show referenced items selected with Reference type field as links.

v1.2.5 /1.2.6– NOV 6, 2018
- Bug fixed: Edit post link in dashboard not working when using [drts-dashboard] shortcode.
- Bug fixed: Google Maps Timezone API using browser key causing error when referrer restriction enabled.
- Bug fixed: "Scroll to item on marker click" option could not be disabled.
- Bug fixed: Location filter causing filter form to submit twice.
- Bug fixed: Some issues with storing Time type field values.
- Bug fixed: Some more JavaScript compatibility issues with themes.
- Bug fixed: Duplicate auto-suggestions in keyword search field.
- Bug fixed: Restricting form field visibility by user roles causing field values to disappear on certain occasions.
- Bug fixed: Google Maps type/style settings keep reverting back.
- Bug fixed: Shortcodes in notifications not working properly.
- Improved: Added option to enable/disable fields to be displayed inline for Field List display element.
- Improved: Added option to trim trailing zeros for Number type field.
- Added: New tool to adjust Time type field values.

v1.2.4 – OCT 31, 2018
- Bug fixed: Location autosuggest not working when using "Google Maps Place Autocomplete" as address autocomplete service.
- Bug fixed: "Allow empty location" option for Location type field not working.
- Bug fixed: WPML string translation not working for some field labels.

v1.2.3 – OCT 30, 2018
- Bug fixed: Order add-on link in frontend dashboard not working since v1.2.0.
- Bug fixed: Empty alert box popping up on custom login/registration page on certain occasions since v1.2.0.
- Bug fixed: Map markers not showing up when marker clusters enabled since v1.2.0.
- Updated: Autosize JavaScript library to v4.0.2.

v1.2.0/1.2.1/1.2.2 – OCT 27, 2018
- New: Alternative map APIs (OpenStreetMap, Mapbox Geocoding, GeoNames Timezone, Algolia Places)
- New: Custom page for single posts/terms
- New: Map only view
- New: WooCommerce Subscriptions plugin support
- New: WP All Import plugin support
- New: BuddyPress activity integration
- New: [drts-entity] shortcode
- New: Scaled thumbnail images
- New: Option to show logout button in frontend dashboard
- New: FaceBook messenger link field renderer
- New: Added support for “Category Order and Taxonomy Terms Order” plugin
- New: Option to disable location per listing using the “This listing has no physical location.” checkbox
- New: Allow guest to proceed to submit listing/review page without entering any guest info
- New: Option to use category icons as map marker instead of listing photos
- New: Bidirectional relationships between posts
- New: Use custom image field as default image field
- New: Sort by payment plans with custom order
- New: Enable/Disable featured image (post thumbnail)
- New: Option to show filters by default
- and many more…
See https://directoriespro.com/directories-pro-1-2-0/ for more details.

v1.1.32 – OCT 17, 2018
- Bug fixed: Fix some issues with querying listings by payment plans in view settings.
- Bug fixed: Fix compatibility issues with Responsive Lightbox & Gallery plugin and photo slider view.
- Bug fixed: Address not formatted/displayed correctly for listings with multiple address.
- Bug fixed: Current user always set as author when importing listings without author.
- Bug fixed: Excerpt not displaying correctly for sub-languages with WPML.
- Improved: File upload no longer requires Fileinfo PHP extension.

v1.1.31 – OCT 8, 2018
- Bug fixed: Template override not working.
- Bug fixed: Post parent field not selectable when importing reviews.
- Bug fixed: HTML tags in custom address display format not working since 1.1.30.
- Improved: CSV importer compatibility with CSV files exported with Sabai Directory.
- Reverted: Custom address display format setting moved back to Manage Displays section from Manage Fields.

v1.1.30 – OCT 2, 2018
- Bug fixed: Error when creating a new Location type field, since v1.1.29.

v1.1.29 – SEP 30, 2018
- Bug fixed: Search related issues with listings that have multiple location addresses.
- Bug fixed: Configuration form for HTML/JavaScript elements not rendering correctly in backend Manage Fields and Manage Filters sections.
- Bug fixed: Field description not showing for Image type field with media manager.
- Bug fixed: Default field renderer for Image type field not possible to show original size image on click.
- Bug fixed: Address in map infobox not showing custom formatted address.
- Deleted: "Do not load Google Maps API in admin dashboard" option under Settings -> Map.

v1.1.28 – SEP 24, 2018
- Bug fixed: Empty search results on certain occasion when taxonomy name search enabled for keyword search.
- Improved: More HTML classes added to individual posts and terms.

v1.1.26/1.1.27 – SEP 22, 2018
- Bug fixed: Confirmation message not showing when Gravity Forms contact form submitted.
- Bug fixed: Duplicate listing/review pending notification messages.
- Improved: Added 1/6 column width to "Column" display element.
- Improved: Removed alphanumeric and underscore character restriction from Choice type field option values.
- Improved: More compatibility issues with some themes.

v1.1.24/1.1.25 – SEP 7, 2018
- Bug fixed: Labels display element settings always showing default values even when updated.
- Bug fixed: Category icon not showing up properly on category pages since v1.1.23.
- Added: Support for Responsive Lightbox & Gallery plugin to display images/photos in lightbox window.

v1.1.23 – AUG 31, 2018
- Bug fixed: Invalid "read more" link when displaying excerpt.
- Bug fixed: Enable time option not working with Date type field.
- Improved: Added %author_name% to list of available tokens for Text display element.

v1.1.22 – AUG 28, 2018
- Bug fixed: Use home_url() instead of site_url() for redirection URL to prevent 404 error on certain occasions.
- Added: drts_core_no_img_src filter for replacing default no-image image.
- Improved: Font Awesome icon library compatibility with some themes.
- Improved: Compatibility with certain hosting providers.

v1.1.21 – AUG 23, 2018
- Bug fixed: Error on deactivating Directories - Payments plugin after Directories - Frontend plugin.
- Bug fixed: Error on Appearance -> Widgets on certain occasions.
- Bug fixed: Some issues with Multi-byte chars in directory page slug and WPML.
- Bug fixed: Error log not being generated in recent versions if debug mode disabled.
- Bug fixed: Sort options not showing when results are empty.
- Bug fixed: Some issues with searh form shortcode in widgets.
- Improved: Use default search radius setting of Location filter as search radius for "Search my location" geolocation search.
- Improved: Show map on mobile devices when map position is set to Top.
- Improved: "directory" shortcode parameter no longer a required parameter.
- Improved: Compatibility with 3rd party plugins.
- Improved: Export/Import Time type field values in local time instead of GMT.
- Improved: Allow query date/time fields by local date/time instead of GMT in view settings.
- Updated: FontAwesome icons to v5.2.0.

v1.1.20 – AUG 11, 2018
- Improved: Display issues with dropdown and date/time picker filters inside modal window.
- Improved: Auto-complete WooCommerce orders when payment is complete.
- Improved: Compatibility issues with 3rd party plugins.
- Bug fixed: Filter form widget not showing up on certain occasions.
- Bug fixed: "Open Now" label not showing up on correct time for listings located outside GMT+0 timezone.
- Bug fixed: Some issues with current location search when default search radius is set to 0.

v1.1.19 – AUG 4, 2018
- Bug fixed: Some issues with quick/bulk edit posts.
- Improved: Allow users with "Delete others Claims" to approve/reject any claim.
- Added: New "Sync taxonomy terms" system tool.

v1.1.17/v1.1.18 – AUG 1, 2018
- Bug fixed: Keyword search not searching fields selected in "Extra fields to include in search" setting.
- Improved: Use Location taxonomy term labels instead of address component data returned by Google Maps API for PostalAddress addressLocality/addressRegion properties in JSON-LD.
- Improved: Make phone numbers clickable by default on mobile devices.

v1.1.16 – JUL 28, 2018
- Bug fixed: Dynamic filter facet counts in Filter Form widget not updating since v1.1.15.
- Added: Some missing language phrases.
- Improved: Allow export/import of voting type field (rating, review rating, bookmark) values.
- Improved: Photo slider library compatibility with some themes.

v1.1.15 – JUL 26, 2018
- Bug fixed: More HTTP 414 error fix.
- Bug fixed: Choice type field "Add from CSV" not importing icons.
- Added: New WordPress filter hooks (drts_social_medias, drts_social_media_url) to allow adding custom social media fields.
- Improved: Auto-detect line endings when importing CSV file.
- Improved: Compatibility with Bootstrap library included with some themes.
- Updated: Bootstrap v4.1.3.

v1.1.14 – JUL 24, 2018
- Bug fixed: Listing link field not showing in frontend review submission form.
- Bug fixed: Display issues with WP editor in frontend listing form.
- Bug fixed: HTML attributes stripped out from Text display element.
- Bug fixed: Taxonomy term field filter hiding child terms when parent is empty and hide empty option enabled.
- Bug fixed: Do not load Google Maps API library option not working since 1.1.10.
- Bug fixed: Yoast SEO field values not showing on edit listing page in the backend when updating. 
- Improved: Single category page compatibility with more themes.
- Improved: Added current user ID/name tokens to Text display element.
- Improved: Allow URLs in any Social Account input field.
- Updated: Bootstrap v4.1.2.

v1.1.13 – JUL 19, 2018
- Bug fixed: Disabling certain feature(s) in one directory removing field(s) from other directories.
- Bug fixed: JavaScript error when adding Button display element with one or more custom buttons.
- Bug fixed: Some content type label settings not showing up on content type edit page.
- Improved: Compatibility with more themes.

v1.1.12 – JUL 18, 2018
- Bug fixed: Content type info reverting back to default when updating directory settings.
- Improved: Cache content type info for 7 days when the feature associated with the content type is disabled so that it can be restored when re-enabled.

v1.1.11 – JUL 17, 2018
- Bug fixed: HTTP 414 error fix in 1.1.10 causing some issues with search.
- Bug fixed: Taxonomy terms not showing on listing pages on certain occasions.
- Bug fixed: Listing photos not displaying properly on certain occasions since 1.1.10.

v1.1.10 – JUL 12, 2018
- Bug fixed: HTTP 414 error (Request URI too long) on some servers.
- Bug fixed: Query by taxonomy terms option for views not working correctly.
- Bug fixed: Photo slider view custom image field option not working.
- Bug fixed: Location search field still showing even when Location feature disabled.
- Bug fixed: Search form redirecting when shortcodes are used on directory index page.
- Improved: IE11 compatibility.

v1.1.9 – JUL 9, 2018
- Bug fixed: Add/update views not possible since v1.1.8.
- Bug fixed: Vimeo videos not playing.

v1.1.8 – JUL 8, 2018
- Bug fixed: Some issues with "Recalculate review ratings" system tool.
- Bug fixed: Custom location address format not applied when no location term assigned.
- Bug fixed: Photos in Photo Slider view not being linked to posts on certain occasions.

v1.1.7 – JUL 8, 2018
- Added: New "Recalculate review ratings" system tool.
- Bug fixed: Custom label for frontend dashboard panels not showing.
- Bug fixed: WooCommerce My Account page integration not working with some themes.
- Bug fixed: Photo slider showing large empty black background with some themes.
- Bug fixed: Icon picker field not working on certain occasions with some browsers.
- Bug fixed: Single category page not showing correct page title with some themes.
- Bug fixed: YouTube social accounts field adding extra http:// to entered values.
- Bug fixed: Post/Term query returning empty results when WPML activated.
- Improved: Compatibility with some themes.

v1.1.6 – JUN 30, 2018
- Bug fixed: Custom address format setting was always hidden.
- Bug fixed: Setting default Google Maps map type to OSM not working.
- Bug fixed: Search with Google Maps auto-suggested location not working.
- Bug fixed: License and guest permission settings being reset on plugin re-activation.
- Bug fixed: Some issues with importing attachments for Image/File type fields. 

v1.1.5 – JUN 11, 2018
– Bug fixed: Taxonomy term selection not being updated on quick edit posts.

v1.1.4 – JUN 10, 2018
- Improved: RTL display issues.
- Bug fixed: Conditional field settings with category field on the admin side.
- Bug fixed: Link to URL of another field for title field renderer not working properly.
- Bug fixed: Checklist field renderer for Choice type field showing content in the frontend even when empty.
- Bug fixed: Filter settings not being displayed for some filter elements.
- Some minor code refactoring.

v1.1.3 – JUN 6, 2018
– Bug fixed: Datepicker form field not working in the frontend on certain occasions.
– Bug fixed: File upload and media manager form fields not sending correct values causing various issues.

v1.1.2 – MAY 30, 2018
- Added: Option to enable/disable frontend submission per directory.
- Added: Tokens that can be used to embed dynamic values in text content (Text field and display elements).
- Added: Option to disable/enable Visual mode and Quicktags for WP editor used with Listing Description field.
- Improved: GDPR - Anonymize personal data field on erasure only when current data is not empty.
- Bug fixed: Page not redirecting on certain occasions when shortcode error.
- Buf fixed: Claim listing button always being displayed to guest users.
- Lots of code refactoring.

v1.1.1 – MAY 25, 2018
- Improved: Let draft/pending/scheduled items to be viewable for preview in frontend if author/permitted.
- Improved: Add more field types that can be configured as personal data.
- Improved: Custom label can be created with the Label display element.
- Improved: Add more address component values for better geocoding results when using “Load geolocation data” tool.
- Improved: Make sure custom rating criteria slugs are not more than 40 characters.
- Bug fixed: Do not auto-scroll when submitting form via Ajax.
- Bug fixed: Some PHP notice/warning level errors.

v1.1.0 – MAY 23, 2018
- Added: GDPR compliance
- Added: Conditional fields
- Added: WhatsApp field render for Photo type field.
- Improved: Added option to show own content only for Reference type field.
- Improved: Make sure Directories is activated before other plugins.
- Improved: Localize date/time picker (flatpickr).
- Improved: Do not enable shortcodes on admin side.
- Bug fixed: Display issues using shortcodes to customize default pages.
- Bug fixed: Fix fatal error when payments plugin enabled without frontend plugin.
- Lots of code refactoring and minor bug fixes.
- Updated Bootstrap to v4.1.1.

v1.0.6 – MAY 9, 2018
- Bug fixed: Filter button not showing on small-screen devices.
- Bug fixed: Order add-on plan form redirecting to homepage instead of cart page on submission.

v1.0.5 – MAY 4, 2018
- Bug fixed: Admin page links not working when permalink structure set to Default.
- Bug fixed: Trying to load map settings from Location instead of Map component.

v1.0.2/v1.0.3/v1.0.4 – MAY 1, 2018
- Bug fixed: Not able to access admin listing index page when directories-pro plugin not installed.

v1.0.1 – APRIL 30, 2018
- Bug fixed: Claims admin menu not showing in the backend.
- Bug fixed: Required option for Location field not working properly.
- Bug fixed: Removed redundant success message after edit/delete posts on frontend dashboard page.

v1.0.0 – APRIL 29, 2018
- Initial release
by
by
by
by
by
by