1. Posts Table Pro
  2. Advanced Usage

Using WPML to translate Posts Table Pro

Posts Table Pro is a WordPress table plugin that allows you to create searchable tables of your WordPress posts, pages and any custom post type. Some of our customers choose to translate their tables into multiple languages using WPML. We recommend using WeGlot or TranslatePress rather than WPML because they are easier to use and are guaranteed to work with other plugins, including all of Barn2's plugins. However, if you wish to use WPML then this article will provide basic guidance on use the two plugins together.

Notes:

  • Posts Table Pro also comes with several built-in languages which you can use without needing a separate multilingual plugin. Please see our article on translating Posts Table Pro.
  • If you have any problems using WPML then unfortunately this does not come under our plugin support. We recommend contacting WPML support or asking your developer to investigate the problem for you.
Need professional assistance?
We've partnered with Codeable to provide our customers with expert help if required.

Note: Posts Table Pro also comes with several built-in languages which you can use without needing a separate multilingual plugin. Please see our article on translating Posts Table Pro.

What you will need

  • Posts Table Pro plugin (version 2.0.3 or above)
  • A recent version of WPML (version 3.5.3.1 or above)

Getting started and what to check

Is your site already configured by your developer?
Please make sure the following plugins and options are activated.

Are you setting up WPML yourself?
Follow the steps below:

  • Set up WPML from WPML -> Languages. See the WPML Getting Started Guide for a complete reference. The initial, simple three-step setup is self-explanatory, asking you to choose your default language, a set of active languages, and a language selector. (For starters, choose the footer language selector; you can change this later.)
  • Install and activate the core WPML plugin (WPML Multilingual CMS) first, followed by the other WPML plugins listed above.

Translating your posts

  1. Use WPML to add translations for all the posts/pages/custom posts that you wish to list in a table using Posts Table Pro.

Translating Posts Table Pro

Install Posts Tale Pro and create one or more tables. Make sure you have translated all your posts/pages/custom posts using the instructions in the previous section.

The next step depends on whether you're using one of the languages where translations are provided with Posts Table Pro. You can see the list of included languages at: https://barn2.com/kb/translating-posts-table.

  • Included languages - Select your language under Settings > General in the WordPress dashboard, and the product table will automatically show in the correct language. In WPML > Theme and plugins localization, select either 'Translate themes and plugins using WPML's String Translation and always load .mo files as backup' or 'Don't use String Translation to translate themes and plugins'.
  • Other languages - Use one of these methods to translate the product table:
    • Use WPML's string translation to find the strings that need translating and add the translations via WPML. In WPML > Theme and plugins localization, select either 'Translate themes and plugins using WPML's String Translation only (don't load .mo files)' or 'Translate themes and plugins using WPML's String Translation and always load .mo files as backup'.
    • Create your own .po and .mo files and upload them to the site. In WPML > Theme and plugins localization, select either 'Translate themes and plugins using WPML's String Translation and always load .mo files as backup' or ' Don't use String Translation to translate themes and plugins'.

When you set up your post tables, DO NOT enable the caching option. This ensures that the table is loaded with the correct language posts for each user, and users are not shown a cached version of the wrong language.

Related Articles

Still need help?
If searching the knowledge base hasn't answered your question, please contact support.