Support » Plugin: Yet Another Related Posts Plugin (YARPP) » Filtering related posts by language (using Polylang)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thanks Chouby.

    I’m supposing this enables languages as taxonomies, so I can later exclude languages using the function “yarpp_related”. Is this correct?

    'exclude' => array(<id of language>),

    Thanks for your answer.

    I am not familiar with YARPP as I don’t use it. For what I have understood, this will allow to require the language to be common in the “relatedness” options. So far, I have no feedback whether it works or not.

    Maybe it can work as you want too. I don’t know.

    And yes the language is a taxonomy in Polylang (but YARPP does not consider all taxonomies by default, the reason for the small manipulation suggested in the link above).

    Oh, thanks! That did it.

    If someone has trouble with this, in the YARPP settings page you have to enable “relatedness” options via the “Screen options” slider, then you can tell YARPP to select related posts that have at least one language in common with the one being displayed.

    Thanks again.

    Great! Glad you found that option. Very cool that you can use YARPP in this way. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Filtering related posts by language (using Polylang)’ is closed to new replies.