• Resolved crazymiwka

    (@crazymiwka)


    Some time ago I have faced on my web with such problem. A language is main, B language is second which is added with WPML plugin. In A language I have, for example, 100 posts, but to B language in translated only 50 posts. So, when I use wpp_get_mostpopular function on B language page, untranslated popular posts are dipslayed too. How can I exclude these untranslated posts?

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

    (@hcabrera)

    How can I exclude these untranslated posts?

    Short answer is: you can’t.

    WordPress Popular Posts expects all posts to have a translation available. This is hinted on the Description section of the plugin as well:

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

    So if a post doesn’t have a translation available the plugin will -as you already noticed- display the original version instead.

Viewing 1 replies (of 1 total)

The topic ‘Don’t show untranslated posts’ is closed to new replies.