• Resolved df64rhrwvf

    (@df64rhrwvf)


    Hi I have some posts that are in a different language that I would like to filter out of the popular posts results. I’m not using a multi-language plugin or anything – these are just posts in a different language and there is metadata on each post indicating the language. Is it possible to filter posts? Or at the very least, is it possible to return an array of popular posts that I can filter manually before rendering to the page?

    • This topic was modified 4 years, 4 months ago by df64rhrwvf.
    • This topic was modified 4 years, 4 months ago by df64rhrwvf.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @df64rhrwvf,

    is it possible to return an array of popular posts that I can filter manually before rendering to the page?

    Yes, please have a look here.

    Note that the WordPressPopularPosts\Query class will be slightly refactored in the near future (version 6.0.0, to be released within the next few months) so if you use it on a project do make sure to keep an eye on the changelog as I will announce what’s changed and what needs to be done so you can keep using said class.

    Thread Starter df64rhrwvf

    (@df64rhrwvf)

    This worked for me. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Filtering posts from popular post results’ is closed to new replies.