
A multilingual sitemap with Google XML sitemap and ZdMultiLang
This site attempts to be bilingual, using the plugin ZdMultilang. This plugin manages the translation of various elements of WordPress (posts, links …) and covers 90% of translation needs. But like most of multilingual plugins, it does not support more sophisticated needs, like adding translated posts in sitemap.xml
, for example.
THE plugin for the generation of this file is Google XML Sitemaps. I propose to you a modification of this plugin to take into account the information managed by ZdMultilang.
The goal is to list all posts into the sitemap.xml
file, regardless of their language.