• I have a conflict problem between my Kalium theme and Polylang: when the plugin is active i can’t view my portfolio projects.
    I’ve already contacted the theme’s support which responds:

    I’ve tried several ways to solve this issue however it is deeply related to the Polylang plugin which modifies the post type archive page query and thus the projects are not shown.

    I have added a code debug to see what query is called on each theme:

    https://d.pr/v/aLyE5U

    In Kalium this query is loaded:

    [query] => Array
    (
    [post_type] => portfolio
    [lang] => it
    )
    In Twenty Twenty this query:

    [query] => Array
    (
    [post_type] => portfolio
    )

    There is no exact reason why this is happening but I suggest you to contact Polylang plugin and ask them to how can you remove “lang” attribute from WP Query on portfolio so all portfolio items will be shown.

    I would love to help you more on this, but the query is affected by Polylang plugin and I cannot debug this plugin since I don’t how their code works.

    how can i solve it?

  • The topic ‘how can you remove “lang” attribute from WP Query on portfolio’ is closed to new replies.