FacetWP allows you to add advanced filtering to listings on your website. In this tutorial, we walk you through the process of creating multilingual filters using WPML.
- Getting Started
- Translating Custom Listing Pages
- Multilingual Filters
- Translating Other Texts
- Known Issues
- Getting Help from Our Support
Start by installing and activating the following plugins:
- WPML core plugin, WPML String Translation, and the Translation Management add-ons.
- FacetWP plugin along with the Multilingual add-on.
If you’re new to WPML, check out our Getting Started Guide. It quickly walks you through different translation options you can use.
We recommend using WPML’s Advanced Translation Editor for an effortless translation experience. To enable it go to WPML → Settings and under the How to translate posts and pages section select Use WPML’s Advanced Translation Editor.
FacetWP allows you to create custom listing templates via its layout builder. You can add the template shortcode to any page to display the custom listing.
In our example, we created a custom product page and added the template shortcode to it. You can create a template to list posts, pages, or custom post types.
To translate this page, follow the steps below:
- Edit the page. In the Language box, click the plus icon corresponding to the language you want to translate your page into. This takes you to the Advanced Translation Editor (ATE) screen.
- Click the Translate automatically button to load the machine translation. Review the translation to ensure it’s human-readable and click the green checkmark to confirm each sentence. Finally, click the Complete button to publish the page translation.
WPML will automatically copy the necessary shortcode to the other language and display the translated content.
With FacetWP, you can create custom filters (facets) and add them to a listing page. In our example, we created a product category filter and added it to the custom shop page.
To translate the filter, you need to translate the product categories. Check our detailed guide to know more about translating post categories and custom taxonomies.
Depending on the type of filter, you might also need to translate the custom fields that appear in it.
Here is the translated filter on the front-end:
Besides posts, pages, and custom post types contents, WPML allows you to translate texts in admin screens, widgets titles, and more from the String Translation screen.
Having difficulties using FacetWP on your WPML-powered site? Visit our support forum.