the site i’m building will be in french and english. I’ve made CPT’s for outdoor activities and have some queries on my pages for those activities.
Problem is that i’ve built my pages and custom posts in french, and so the queries get the french posts. Now i’m using polylang to create english pages and posts.
The CPT name stays the same “activités été” and both my french and english posts are inside this cpt. How can i do so that my query shows only english or only french posts ?
If the language is not being passed into the query for some strange reason, you can potentially use a code block before the query block to add it (I haven’t tested this):