Apparently, you have to select "The language is set from the directory name in pretty permalinks" in the Polylang settings for the previous code to work.
↧
Apparently, you have to select "The language is set from the directory name in pretty permalinks" in the Polylang settings for the previous code to work.