• Why Directorist
    • All Features
    • Solutions
    • Customer Showcase
    • Testimonials
  • Extensions
  • Themes
  • App
  • Resources
    • Documentations
    • Support Center
    • Contact Us
    • Roadmap
    • Beta
    • About Us
    • Team
  • Pricing
  • Blog
Sing In

Directorist

Getting Started

  • Directorist Overview with Setup Wizard
  • Installation
  • Setting Up the Required Pages
  • Managing Categories
  • Managing Location
  • Terms and Conditions Setup
  • CSV Import/Export

Listings Management

  • Adding a listing from the frontend & backend
  • Guest listing submission
  • Listings Sidebar
  • Category Archive
  • Location Archive
  • General Listing Settings
  • Multiple Directories
  • All Listings Management

Monetization

  • Monetization Overview
  • General Configurations
  • Test your configuration
  • Managing Orders
  • Currency Settings
  • Gateway Settings

Search and Filter Settings

  • Search Listing Page Setup
  • Advanced Filter in Search Result Page
  • Advanced Search and Filter
  • Advanced Filter in Search Listings Form
  • Search Result Page Setup
  • Advanced Filter in All Listings Page
  • Advanced Filter Widget

Customization

  • Registration and Login Customization
  • Single Listing Page Customization
  • All Listings Page Customization
  • Badges Styling
  • Adding Widgets
  • Email Template Customize
  • Color settings
  • Custom Fields On Add Listing Page

Shortcodes

  • Add Listing Page
  • All Listings Page
  • Single Category Page
  • Tags Page
  • All Locations Page
  • Search Results
  • Login and Registration
  • Payment & Checkout Page
  • All Categories Page
  • Single Location Page
  • Search Listings
  • User Dashboard
  • Author Profile
  • All Authors

Advanced Settings

  • Search Engine Optimization (SEO)
  • Configuring Maps
  • Review Management
  • Translating Directorist
  • Map View
  • Help and Support
  • Sending Announcements

Developers Guide

  • Action Hooks
  • Filter Hooks
  • Template Override

Articles

  • How to perform a plugin conflict test
  • How to Fix Export Issues in Directorist Default Import/Export Tool

Directory Builder

  • Form and Layout Builder
  • Single Listings Layout
  • Multiple Directories
  • All Listing Card Layout
  • Search Form Layout
  • Custom Single Listing Page
How to Fix Export Issues in Directorist Default Import/Export Tool

Overview

If you’re experiencing issues with exporting listings using Directorist’s default import/export tool, a small code adjustment can resolve the problem. This guide will show you how to apply the fix.

Problem

Sometimes, the export function does not work as expected. The issue occurs when non-string data is processed incorrectly during export.

Solution

To fix this, you’ll need to modify the class-listings-export.php file in Directorist by adding a few lines of code.

Steps to Fix the Export Issue

  1. Locate the File: Using FTP or your hosting file manager, navigate to:
    /wp-content/plugins/directorist/includes/classes/class-listings-export.php
  2. Edit the File: Open the class-listings-export.php file and add the following code to ensure that only string data is processed during export:
    if (! is_string($data)) {
    return $data;
    }
  3. Save the Changes: Once the code is added, save the file and re-upload it if necessary.

Image Reference

Example:


Conclusion

By making this simple code adjustment, the export issue will be resolved. For further assistance, feel free to contact support.

Last Updated: October 10th, 2024

Related Article

  • How to perform a plugin conflict test

© 2025 All rights reserved