This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Polylang and custom posts

#34256
nicolab292nicolab292
Participant

Hello Ernest,

Yes, it works! Thank you. Now my specific search in my series of custom posts that do not have a language assigned is operational in both the languages that the website has.

I also built a “general search” in all the website, that covers both the main pages (that have two versions for language and are mangaged by Polylang ) AND my custom posts that aren’t managed by Polylang.

But, one of the two things happen:

– if I apply Polylang compatibility, the custom posts are filtered
– if I don’t apply Polylang compatibility, the results in the main pages are doubled : both languages come up

I don’t thing there is way around that, is there? Ideally I would like to have the results in the current language for the main pages + the custom posts. But I understand that this comes from the fact that Polylang filters content that is not in the current laguage, even though these posts are excluded from the scope of what it is supposed to deal with.

Best regards,
Nicolas