WPML custom string translation get outside of container
When you use _e your echoing the translated string. But you already have an echo so just use __(. This is the correct code for your example echo ‘<h1>’ . __(‘September’, ‘simultan’) . ‘ ‘ . $day . ‘</h1>’; If you want to add variables in your translations you should use sprintf like this: $date … Read more