When a site has a large number of terms in taxonomies (e.g., hundreds of car makes and dozens of thousands of car models that are connected to each other), the "Add Ad" form will load quickly. However, if you allow users to add new terms (e.g., new car models) at the same time in one of the fields (e.g., Listivo Panel > Custom Fields > Make), and you check the option shown below:
If this option is checked and you have thousands of makes/models, adding a listing can take more time. This is because, when an ad is added, Vehica needs more time to check all potential connections, which can be time-consuming as it involves executing a large database query.
To address this issue and improve the speed of adding listings, you can disable the automatic term connection process and manage term connections manually.
1. Activate a Child Theme: This allows you to make modifications without affecting the main theme and ensures compatibility with future updates. How to use Child Theme? How to change files (php / css / js) and keep theme future update compatibility?
2. Add the following code to the child theme's functions.php file:
add_filter('vehica/connectTermsOnSave', function() { return false; });
This filter disables the automatic connection of terms during the listing save process, which significantly reduces the time taken to add a listing.
3. If you need to connect child terms to parent terms (e.g., models to makes), you can do it in the Listivo Panel > Advanced > Tools > Connect Terms.