• Resolved Slavek

    (@jackoneill)


    Hi Héctor, I’m using Polylang, and my website has two languages. Whenever I open a post in a secondary language, the views count towards the post in the primary language. It counts towards the secondary language only if the post doesn’t exist in the primary language. That means two things:

    1. The stats are inaccurate.
    2. I can’t display the popular posts of the secondary language because only the posts without translation to the primary language will be shown.

    Is there anything I can do about this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @jackoneill,

    WordPress Popular Posts considers posts and their translations as a single entity, hence why views count towards the “original” post and not its translation(s). And no, there’s currently no way to change this behavior.

    I can’t display the popular posts of the secondary language because only the posts without translation to the primary language will be shown.

    WPP expects all posts to have at least one translation available. This is sort of hinted at in the Description page:

    Polylang & WPML 3.2+ support – Show the translated version of your popular posts!

    If no translation is found the plugin will render the “original” post instead. So yes, you can’t have a “Most Popular In [Language Here]” list as that’s not how it works with WPP and translation plugins.

    • This reply was modified 1 year, 10 months ago by Hector Cabrera. Reason: Added note on translations
    Thread Starter Slavek

    (@jackoneill)

    Thank you for the explanation, Héctor. Would be great if this could change in the future.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with Polylang’ is closed to new replies.