Homepage Control

Homepage Control is a free lightweight plugin that allows you to manage homepage components. Homepage components can display various types of content from your site similar to widgets but can only be enabled on the homepage of your site. By using homepage controls included with Directories Pro, you can easily create a nice landing page for your directory with just a few number of clicks through WordPress Customizer (Appearance -> Customize) without writing any code (including shortcodes) or using 3rd party page builders.

Homepage Control

Note: In order for the feature to work, your theme must be calling the homepage action hook where homepage controls will be displayed. This does mean that as long as the homepage action hook is called properly, homepage controls can be displayed anywhere.

For more information and instructions on how to use Homepage Control, see https://docs.woocommerce.com/documentation/plugins/homepage-control/.

Directories Pro homepage controls

The following homepage controls are available with Directories Pro:

  • Directory Featured Listings - Shows featured listings in auto playing photo slider.

    Featured Listings

  • Directory Categories - Shows categories in grid view.

    Browse by Category

  • Directory Locations - Shows locations with photos in masonry view.

    Popular Locations

  • Directory Listings - Shows 4 latest listings in grid view.

    Recent Listings

  • Directory Reviews - Shows 6 latest listing reviews in masonry view.

    Recent Reviews

Specifying a directory

By default, Directories Pro homepage controls will display content from the first directory found on your site. If there are multiple directories on your site and wish to specify the directory from which to fetch content, you can add a custom field to the page with the field name set to drts_directory and the machine name of your directory as the field value.

Homepage Control Custom Field

Configuring cache

Content generated by Directories Pro homepage controls is cached for a day (86400 seconds) by default. In order to disable caching or modify the cache lifetime, add the following code to functions.php of your theme:

add_filter('drts_wordpress_homepage_cache_lifetime', function($lifetime) {
    $lifetime = 0; // specify cache life time in seconds, 0 to disable cache
    return $lifetime;
});

results matching ""

    No results matching ""