Advanced Classifieds and Directory Pro Plugin is fully compatible with the WPML translation plugin, allowing you to easily create a multilingual classifieds website. This guide will provide step-by-step instructions on how to use the Advanced Classifieds and Directory Pro Plugin with WPML.
Please note that this guide assumes you have already installed and configured the WPML plugin. If you have not, we recommend referring to their Official WPML documentation for instructions on how to do so.
To use the Advanced Classifieds and Directory Pro Plugin with WPML, you will need to install and activate the following plugins:
- 1. WPML Multilingual CMS – This is the main WPML plugin that enables you to create and manage translations for your website.
- 2. String Translation – This plugin allows you to translate the strings in your website’s plugins.
Note: Once you have installed and activated the required plugins, you can begin setting up your multilingual classifieds website. Follow the steps in the order listed below to ensure everything works smoothly:
1. Enabling Translations for Listings, Custom Fields, Categories, and Locations
Assuming you have already installed and configured the WPML plugin on your website, the next step is to enable our plugin’s post types and taxonomies on the WPML settings page.
To do this, follow the steps below:
- 1. Go to the WordPress dashboard and navigate to “WPML” > “Settings”.
- 2. Scroll down to the “Post Types Translation” section and locate the “Listings (acadp_listings)” and “Custom Fields (acadp_fields)” options.
- 3. Select “Translatable” for both options and click “Save”.
- 4. WPML provides two “Translatable” options for each post type. You can choose any of these options depending on your website setup.
After enabling the post types translation for the listings and custom fields, the next step is to enable the taxonomies translation for the categories and locations.
To enable taxonomies translation for the categories and locations, follow these steps:
- 1. Go to the WPML settings page by navigating to “WPML” > “Settings”.
- 2. Scroll down to the “Taxonomies Translation” section.
- 3. Look for the “Locations (acadp_locations)” and “Categories (acadp_categories)” options and select “Translatable” for both.
- 4. Click “Save” to save your changes.
Now, WPML would add “+” icons in our plugin’s Listings, Custom Fields, Categories, and Locations pages to translate them to the other languages on your website.
But, before start translating the Listings, we need to translate the standard WordPress pages added by our plugin during the installation and also the Categories & Locations.
2. Translate custom WordPress pages added by our plugin
When you install our plugin, it dynamically adds a few pages to your website that are used internally by the plugin.
These pages can be found under the “Dashboard/Pages” menu. It is important to translate these pages to all the languages on your website, as they contain special shortcodes that need to be included in each translated page.
3. Translate Categories & Locations
The next step is to translate the categories and Locations added using our plugin.
Navigate to “Dashboard / WPML / Taxonomy translation“, select “Categories” from the “Select the taxonomy to translate:” dropdown, and use the “+” icon there to quickly translate the categories.
Finally, switch to the “Hierarchy Synchronization” tab and click the “Update Taxonomy Hierarchy” button if available.
Follow the same steps to translate the “Locations”.
You can also edit the translations of our plugin categories (Dashboard / Classifieds & Directory Pro / Categories) and locations (Dashboard / Classifieds & Directory Pro / Locations) under their own pages.
4. Translate Custom Fields
The next step is to translate the custom fields added using our plugin.
You can edit the translations of our custom fields under Dashboard / Classifieds & Directory Pro / Custom Fields.
5. Translate Listings
Now, it’s time to translate the Listings.
Navigate to “Dashboard / Classifieds & Directory Pro / All Listings” and you will notice the WPML language options for each Listings. All Listings are in your default language, and the column contains flags of the other language available.
To create a Listing version in another language, just click on the “+” icon in the desired language column. This will open an “Advanced Translation Editor” that will allow line-by-line translation.
By default, the editor will display content in “dual” mode, showing the original content and translation fields on the other side.
To translate a piece of content, you must select the appropriate translation field for each line and provide the corresponding translation. After entering all translations, click the “Complete” button to generate the translated version of the listing page.
It’s important to keep in mind that you won’t be able to click “Complete” until you’ve provided all translations. If you need to take a break from translating, click the “Back to list” button, which will save your current progress and take you back to the Listings list. The “+” icon will be replaced by a “cogs” icon to indicate that the translation is in progress. To continue translating the page, click on this icon whenever you are ready.
Once you have completed your translation and clicked the “Complete” button, the translated version of the listing page will be automatically generated and linked to the original page. Existing translated versions will be identified by a “pencil” icon instead of a “+” icon to indicate that the translation already exists.
On the front end, your designs will be automatically copied, and the original content will be replaced with the translated content.
You can follow these same steps to translate all of your listings into multiple languages.
6. Translation Strings
The final step is to translate the user input strings added using our “Advanced Classifieds and Directory Pro” plugin’s settings pages.
Navigate to “Dashboard / WPML / String Translation” and use the “+” icon there to translate each of the user-defined strings.
Now, the Listings, Custom fields, Categories, and Locations display in their own language on your site’s front end.