Title: Exclude translatedposts
Last modified: September 4, 2023

---

# Exclude translatedposts

 *  Resolved [scorpiock](https://wordpress.org/support/users/scorpiock/)
 * (@scorpiock)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/exclude-translatedposts/)
 * Hello,
   First of all, thank you for building this plugin. It makes Algolia integration
   a breeze.
 * I’m testing the Polylang translation plugin to translate the posts and noticed
   the search result showing translated posts as well. Is there a way to not index
   when the post language is not English? Or when the post slug is /nl/?
 * I don’t want translated posts to show in default language posts, i.e., English.
 * Thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexclude-translatedposts%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [2 years, 8 months ago](https://wordpress.org/support/topic/exclude-translatedposts/#post-17027411)
 * Hi [@scorpiock](https://wordpress.org/support/users/scorpiock/)
 * I would check out [https://github.com/WebDevStudios/wp-search-with-algolia/wiki/Im-Trying-To#control-whether-content-should-be-indexed-on-a-per-item-basis](https://github.com/WebDevStudios/wp-search-with-algolia/wiki/Im-Trying-To#control-whether-content-should-be-indexed-on-a-per-item-basis).
 * We have some quick documentation on how to conditionally tell WP Search with 
   Algolia whether or not to index a given post. You can use the filter highlighted
   there to check the currently evaluated post, and grab it’s language code or currently
   translated language. Just have your filter callback return a value of `false`
   to have that post not indexed.
 *  Thread Starter [scorpiock](https://wordpress.org/support/users/scorpiock/)
 * (@scorpiock)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/exclude-translatedposts/#post-17029348)
 * Thank you Michael.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [2 years, 8 months ago](https://wordpress.org/support/topic/exclude-translatedposts/#post-17030163)
 * Welcome

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

The topic ‘Exclude translatedposts’ is closed to new replies.

 * ![](https://ps.w.org/wp-search-with-algolia/assets/icon-256x256.png?rev=2894668)
 * [WP Search with Algolia](https://wordpress.org/plugins/wp-search-with-algolia/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-search-with-algolia/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-search-with-algolia/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-search-with-algolia/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-search-with-algolia/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-search-with-algolia/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/exclude-translatedposts/#post-17030163)
 * Status: resolved