Rehab Directory is a versatile WordPress plugin designed for profit and non-profit organizations to showcase their inpatient and outpatient treatment offerings effectively. This plugin serves as a comprehensive platform for rehabilitation centers to present their services to those seeking help for substance use disorders and mental health issues.
Table Of Contents
The Rehab Directory enables organizations to create detailed listings that include essential information such as treatment types, facility locations, contact details, and specialized services. Its user-friendly interface allows organizations to easily manage their listings, ensuring that individuals can find the support they need quickly and efficiently.
By utilizing the Rehab Directory plugin, a center can effectively promote its services and reach those in need of help.
Step 01: First we have to go to the WordPress dashboard.
Step 02: Then we have to click the Plugins option from the dashboard. Then we have to click “Add New Plugin” button , from there we have to click “Upload Plugin”. Then we have to choose the plugin from our device. Then we have to click install button. Here we can Active The Plugin or we may active it later from Plugins options
Step 03: After activation we will see a new option called “Rehab Directory” to our WordPress dashboard like below
Step 04: Clicking on Rehab Directory we will few options like below
Step 05: Clicking on Add New we can add new an Rehab Directory like below
Step 06: After adding every thing if we publish it we will see it in preview page like below
Use our recommended page builder plugin, FancyPost to unlock a number of powerful blocks to help you to design amazing websites!
Click the button below to explore a live demo of the Rehab Directory plugin. Experience how rehabilitation centers can showcase their inpatient and outpatient treatment options, including treatment details, facility information, and contact details, all in one easy-to-navigate directory. The demo allows you to understand how the plugin can be used to present comprehensive treatment offerings effectively to those seeking help.
Ready to improve how your rehabilitation center showcases its services? Click the button below to download the Rehab Directory plugin and start creating detailed, user-friendly listings for your treatment offerings. Ensure individuals seeking help can easily find the information they need, including contact details, treatment types, and specialized services.
The Rehab Directory plugin is built with flexibility in mind, allowing developers to customize and extend its functionality to better suit their needs. This section provides guidance on how to enhance the plugin through custom coding, API integrations, and template modifications.
Developers can modify the appearance and structure of the directory listings by overriding the default template files. To do this, follow these steps:
yourtheme/rehab-directory/
). This allows you to make changes without altering the core plugin files.Example Code to Customize the Listing Display:
// In your custom template file, add your HTML/CSS here
<div class="rehab-directory-listing">
<h2><?php the_title(); ?></h2>
<p><strong>Location:</strong> <?php echo get_post_meta(get_the_ID(), 'location', true); ?></p>
<p><strong>Contact:</strong> <?php echo get_post_meta(get_the_ID(), 'contact_number', true); ?></p>
<div class="rehab-description">
<?php the_content(); ?>
</div>
</div>
To add custom meta fields to your directory listings (e.g., treatment types, languages accepted), you can use the built-in WordPress functions. Here’s an example of how to register and save custom fields:
// Add a meta box for additional information
function add_rehab_meta_boxes() {
add_meta_box(
'rehab_details', // Unique ID
'Rehab Details', // Box title
'render_rehab_details_meta_box', // Callback function
'rehab_directory' // Post type
);
}
function render_rehab_details_meta_box($post) {
$location = get_post_meta($post->ID, 'location', true);
$contact_number = get_post_meta($post->ID, 'contact_number', true);
echo '<label for="location">Location:</label>';
echo '<input type="text" id="location" name="location" value="' . esc_attr($location) . '" />';
echo '<label for="contact_number">Contact Number:</label>';
echo '<input type="text" id="contact_number" name="contact_number" value="' . esc_attr($contact_number) . '" />';
}
add_action('add_meta_boxes', 'add_rehab_meta_boxes');
// Save the meta box data
function save_rehab_meta($post_id) {
if (array_key_exists('location', $_POST)) {
update_post_meta($post_id, 'location', sanitize_text_field($_POST['location']));
}
if (array_key_exists('contact_number', $_POST)) {
update_post_meta($post_id, 'contact_number', sanitize_text_field($_POST['contact_number']));
}
}
add_action('save_post', 'save_rehab_meta');
Developers can enhance the functionality of the Rehab Directory plugin by integrating third-party APIs, such as treatment resources or location services. Below is an example of how to make a simple API request to fetch additional data:
function fetch_rehab_data_from_api() {
$response = wp_remote_get('https://api.example.com/rehab-data');
if (is_wp_error($response)) {
return; // Handle error appropriately
}
$data = json_decode(wp_remote_retrieve_body($response), true);
// Process and use the retrieved data
}
If you want to customize email notifications for new listings or inquiries, you can hook into the notification system as follows:
add_filter('wpforms_notification', 'customize_rehab_notification', 10, 3);
function customize_rehab_notification($notification, $form_data, $form_id) {
if ($form_id == 'your_form_id') {
$notification['message'] = 'New inquiry from ' . $form_data['fields'][1]['value'] . ' regarding the directory listing.';
}
return $notification;
}
Search , install and active the Duplicate Page By mndpsingh287 plugin like below to make copy of similar types of Rehab Directory
We are always looking to improve! If you have any suggestions for new features or improvements to the plugin, feel free to reach out to us. Your feedback helps us make Easy Job Listing even better.(Contact form , Telegram, Whatsapp, Messenger)
If you enjoy using Rehab Directory and would like to support its continued development, please consider making a donation. Your contributions will help us add more features, provide regular updates, and continue offering support to all users.