Filtering for language (with Polylang or WPML)
-
Is there a built-in way to filter posts by language? I am trying to add a second language to a site, but with CCS I don’t know how to select posts by language.
I know that WordPress has two functions for detecting language:
get_locale() returns the WordPress locale in the format 'en_US' get_bloginfo('language') returns the locale in the format 'en-US'
Is there a way to access these from a loop? Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Filtering for language (with Polylang or WPML)’ is closed to new replies.