Overview of the Issue
When using OptinMonster with WPML, a campaign that you set in WordPress to show only on some posts or pages does not show on the translations of those posts or pages. The original posts and pages show the campaign.
OptinMonster compares the ID of the current post with the IDs in the campaign’s settings. A translation has another ID, so it does not match.
OptinMonster does not plan to change this. The workarounds below make the campaign show in every language.
Workaround
Use one of these two options:
Option 1: Add the Translated Posts to the Campaign
- In your WordPress admin, open the OptinMonster output settings of the campaign.
- In the setting that shows the campaign only on some posts or pages, add the translation of each post or page, in every language.
- Save the settings.
Option 2: Use a Display Rule for Each Language
OptinMonster suggests this option. In your OptinMonster account, set the campaign’s display rules by the URL path of the language, for example “the URL path contains /es/”. See How to use display rules in OptinMonster (opens in a new tab).