Crocoblock / suggestions

The suggestions for CrocoBlock project
191 stars 78 forks source link

JetEngine 3.5 + Polylang: Components are not rendered on pages other than the main language. #7591

Open vovkasolovev opened 3 days ago

vovkasolovev commented 3 days ago

Describe the bug JetEngine 3.5 Components has a problem with the Polylang plugin (one of the popular plugins for creating multi-language sites). Components are simply not displayed on pages of languages other than the main language. An error appears if you try to create a component for another language. (It is worth mentioning that Listings works fine with Polylang).

To Reproduce

  1. Add two Polylang languages
  2. Add a component to the page
  3. Add page translation
  4. Switch to a page in the main language: component is present. Switch to another language: the component is missing.

Expected behavior The component is rendered on a page of any language, on a template of any language.

If there are translations of the component, the component corresponding to the selected language is rendered, otherwise the component corresponding to the main language is rendered.