Directories Pro by Sabai Apps – Yet More Frequently Asked Questions


Frequently Asked Questions – Part 15

The FAQs in this section come from Page 15 of the Code Canyon Comments for this plugin.

Is it possible to bypass the Login/Guest section for guest reviews?

  • Not currently.

Can one use OpenStreetMap instead of Google Maps?

  • This will be available in 1.2.

Frequently Asked Questions – Part 16

The FAQs in this section come from Page 16 of the Code Canyon Comments for this plugin.

  • Will x plugin work with Directories Pro?
    • Most plugins, especially if they have shortcodes, can be used with Directories Pro. When using shortcodes, place them into a Text Display Element.
  • When I try to update the Directories Pro plugin to the latest version I get a message “Updated Failed: update package not available.”
    • Sabai Apps has made some changes that hopefully eliminate this problem.
  • How can I have breadcrumbs for my directory?
    • If using WooCommerce, one can use the native WooCommerce breadcrumb feature.
    • You can also use Yoast SEO or Breadcrumb NavXT to provide breadcrumbs, and these support including taxonomies in breadcrumbs.
  • How can I make it so that the directory display doesn’t show the sub-categories?**
    • You’ll need to edit the Summary Display for Categories: Directories –> [Your Directory] –> Content Types –> Category –> Summary. You can delete the Child Terms Display Element from here.
  • Is it possible to set a max length for the category title on the directory display page?
    • This can be accomplished by editing the Title Display Element for the Summary Display of Categories: Directories –> [Your Directory] –> Content Types –> Category –> Summary. You’ll see an option for maximum characters to be displayed.
    • You can also do this using CSS:
      .drts-display–summary .directory-category-title span {
      text-overflow: ellipsis;
      width: 100px;
      overflow: hidden;
      display: inline-block;
      }
  • Can I set a default image when an a listing is added?
    • Not currently.
  • How can I set a search radius to the widget area?
    • This is being added in 1.2

Frequently Asked Questions – Part 17

The FAQs in this section come from Page 17 of the Code Canyon Comments for this plugin.

  • How can I have a listing description use some default text if the description is empty?
    • You’ll want to use the Element Template feature of the plugin.
    • You would create a template file that looks something like this:
      <?php
      $post =  $entity->post();
      if ($post->post_content !== ”) {
      echo apply_filters(‘the_content’, $post->post_content);
      } else {
      echo ‘no description’;
      }
    • Save the file as directory__listing-element_listing_description.html.php in the wp-content/drts/assets/ directory.
    • Go to Directories –> [Your Directory] –> Content Types –> Listing –> Manage Displays –> Detailed and then click the green + icon to add a display element.
    • In the popup window click “Field Template” and select your template file saved previously.
    • Click “Add Element” and place the element where you wish the listing description/no description text to appear. (You can also delete the default Listing Description element)