• Resolved chrisgrabinski

    (@chrisgrabinski)


    Hi Hector,

    I am currently relaunching a multilingual blog and installed Polylang to deal with the language support and WPP to display the most popular posts.

    The author of the blog sometimes writes language-specific posts that are not supposed to have a translation. Those should not be visible if I am surfing on the other language version of the site. Think surfing a website that is meant to be English but throws in Chinese posts every now and then: Doesn’t really make for a good user experience. ??

    The out-of-the-box WordPress widgets seem to handle this quite well. The ‘Recent Comments’ for instance only shows comments on posts in the currently selected language and I get the same behaviour from the Tag Cloud Widget.

    WPP on the other hand displays the most popular posts no matter which language they are written in.

    Now I’ve read your reasoning about having the same popular posts counter for both language versions but I think what I want to achieve here might go into a slightly different direction then what others asked for, since I just want to ‘skip’ articles in the wrong language.

    Do you have any idea on how to achieve this?

    https://www.ads-software.com/plugins/wordpress-popular-posts/

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

    (@hcabrera)

    Hi there!

    Thanks for the input. I’ll try to comment / respond to your observations in the best way possible:

    The out-of-the-box WordPress widgets seem to handle this quite well. The ‘Recent Comments’ for instance only shows comments on posts in the currently selected language and I get the same behaviour from the Tag Cloud Widget.

    WPP on the other hand displays the most popular posts no matter which language they are written in.

    This happens because, unlike WPP, each of these widgets handles content separatedly: each comment has its own ID, same goes for tags. WPP -on the other hand- unifies the data under a single ID (the one from the original content).

    I am currently reworking the whole multilingual support to allow room for flexibility – that is, hopefully find a way to let the user decide how WPP should behave when a supported multi-language plugin is detected.

    I just want to ‘skip’ articles in the wrong language. Do you have any idea on how to achieve this?

    Actually, a couple of days ago someone suggested a way to do exactly this (see issue 102).

    Thread Starter chrisgrabinski

    (@chrisgrabinski)

    Hey Hector,

    Thank you very much for your quick reply. I guess I could have saved you some time if I had checked Github first. Sorry for that.

    I will have a look at anou’s code and give it a shot. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WPML/Polylang and WPP: Ignore posts in other languages’ is closed to new replies.