Skip to main content

Search Knowledge Base by Keyword

This KB documentation is using Advanced Search, Links Editor and Elegant Layouts add-ons.

Print

Setup WPML for Knowledge Base

It is important to read the following instructions carefully and complete each step. If you encounter any issues, refer to the troubleshooting tips at the end of this article.

Please Note:

Ensure that you have the latest version of the WPML software installed.

Note: If you have questions about WPML options or encounter errors with WPML plugin please contact their support team. If you have questions or need help with WPML related to KB and its articles and categories, please contact KB support.

For more details on individual functions for WPML and configurations beyond the Knowledge Base, see WPML help:

Warning:

WPML offers many ways to setup a multilingual site. Some configuration options might not work with Echo KB and will not be supported. However, the following configuration has been tested successfully.

Access Manager Not Supported
Note that Access Manager does not support WPML.

If you are using the KB Main Page blocks, you must edit each KB Main Page individually to set the block text to specific language. There is no need to use WPML string translations for this process.

If you are using the KB Main Page shortcode [ epkb-knowledge-base id=1 ] for your main page, these instructions will show you how to translate the associated strings.

FAQ groups and FAQ questions are fully translatable with WPML, so you only need one FAQ group and one shortcode for all languages.

1. Create the FAQ group and questions in your default language
 Go to Knowledge Base → FAQs, create your FAQ group and add its questions as usual.

2. Translate the FAQ group
 Go to WPML → Translations → Taxonomy and choose KB FAQ Groups from the dropdown. Click the + icon next to your group for each language, enter the translated name (and optionally slug/description) and click Save. WPML links the translation to the original group.

3. Translate the questions
 Go to WPML → Translations, expand Knowledge Base FAQs, select the question(s), and translate them (Translate myself / automatic / Duplicate). When translated through WPML, the question is assigned to the translated FAQ group automatically.

4. Add the shortcode once
 Insert the FAQs shortcode (using the ID of your default-language group) below the KB shortcode on your KB page, then translate the page with WPML. The same shortcode shows the English group on the English page and the French group on the French page — no need to change the ID per language.

Notes

  • The FAQs admin screen follows the WPML language switcher in the admin bar: it lists the groups of the selected language, or all groups when “All languages” is selected. The questions list shows questions in every language.
  • Questions are displayed according to the group they belong to, so make sure each translated question is assigned to the group of the same language.
  • Groups created before WPML was installed may have no language and appear in every language. Assign a language via WPML (or the KB FAQ Groups term screen), then translate the group as in step 2.
  • Creating a separate FAQ group per language and using a different group_ids value on each translated page still works, if you prefer to manage languages independently.

If you enable the Category Name in KB URL option, update the corresponding URL slug translations in WPML to maintain a consistent URL structure across languages.

  1. Go to WPML → Translations → Strings.

  2. Locate the URL slug string labeled URL slug: epkb_post_type_1.

  3. Update the translations to preserve the /%category% placeholder in each language.

  4. Save your changes.

Important: Keep the /%category% placeholder unchanged in every translated URL structure so the Knowledge Base can correctly identify the category

Screenshot showing the WPML String Translation page with a highlighted URL slug for epkb_post_type_1.
Click to Zoom

Problem: On the All Articles page, if you do not see any KB Articles or are missing KB Articles, you can try to refresh WPML tables.

Solution:

  1. Backup your database
  2. Install the WPML Troubleshooting plugin from WPML → Activate & Update. Then go to WPML → Support, open Fix Language Data and run Set language information.
Click to zoom

Problem: Category Archive Page shows 404 or nothing found message.

Solution: Ensure that at least one published Knowledge Base article is assigned to the category. If the category is empty, assign an article and check the category archive again.

Problem: Translations are not working.

Solution: Ensure that you have installed the latest version of WPML plugins.

Problem: Some strings, like those in the Search box, are in English rather than in my default language.

Solution: Ensure that your strings are in the default language in Knowledge Base frontend Editor -> Content tab (select the text on the screen right side and edit it in the left sidebar of the Editor).

Problem: For users that did not log-in, the search in one language is not working.

Solution: If the search works for logged in users, go to WPML → Settings → Compatibility and, under Language filtering for AJAX operations, enable Store a language cookie for visitors.

Click to zoom
Was this article helpful?
5 out Of 5 Stars

1 rating

5 Stars 100%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Need help?
Table of Contents