The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
I have three custom post types (machines, machine type, products) created with pods in a multilanguage website (polylang with three languages, multisite environment).
The ‘machines’ CPT is linked to the other two with bidirectional relationships and all CPTs are set as translatable and translated, rest api active and polylang’s ‘custom meta’ synchronisation is not enabled.
The problem is that posts are not filtered by language:
When I edit any post of the three mentioned, the relationship fields lists all related post in all the three languages, which is problematic.
When I add a ‘pods item list’ gutenberg block, it outputs posts in all the three languages. This happens when using no template, but also with pods templates. I’ve added a bit of code from the docs ( https://docs.pods.io/plugins/polylang/#Translate_Pods_Templates_pre_Pods_28 ) to activate translations of the templates.
Another odd thing: when outputting posts through pods Gutenberg block or even with find() the items are not language filtered, so each one is present in all the three languages. But using Gutenberg’s loop block or wp_query posts are diplayed correctly in the right language.
Thanks. everything is up to date (Polylang pro Version 3.3.1, network active pods Version 2.9.11.1 and WordPress Version 6.0.1). The website where the issue appears in currently not publicly reachable online.
I couldn't reproduce this then and I still cannot reproduce this issue. Do you still encounter this issue?
And if so, can you reproduce this on a fresh installation with only Pods and Polylang active?
Description
I have three custom post types (machines, machine type, products) created with pods in a multilanguage website (polylang with three languages, multisite environment).
The ‘machines’ CPT is linked to the other two with bidirectional relationships and all CPTs are set as translatable and translated, rest api active and polylang’s ‘custom meta’ synchronisation is not enabled.
The problem is that posts are not filtered by language:
When I edit any post of the three mentioned, the relationship fields lists all related post in all the three languages, which is problematic.
When I add a ‘pods item list’ gutenberg block, it outputs posts in all the three languages. This happens when using no template, but also with pods templates. I’ve added a bit of code from the docs ( https://docs.pods.io/plugins/polylang/#Translate_Pods_Templates_pre_Pods_28 ) to activate translations of the templates.
Another odd thing: when outputting posts through pods Gutenberg block or even with find() the items are not language filtered, so each one is present in all the three languages. But using Gutenberg’s loop block or wp_query posts are diplayed correctly in the right language.
Thanks. everything is up to date (Polylang pro Version 3.3.1, network active pods Version 2.9.11.1 and WordPress Version 6.0.1). The website where the issue appears in currently not publicly reachable online.
Bug report opened as per suggestion here: https://wordpress.org/support/topic/posts-of-a-pods-cpt-are-not-filtered-by-current-language/
Version
2.9.11.1
Testing Instructions
No response
Screenshots / Screencast
Possible Workaround
No response
Site Health Information
Pods Package