La capacité de proposer une recherche WordPress multilingue est essentielle pour tout site web qui a été traduit en plusieurs langues. Les utilisateurs qui parcourent votre contenu dans une certaine langue ont besoin d'un moyen simple pour trouver des sujets pertinents dans cette langue exacte.
C'est à ce moment-là recherche multilingue entre en jeu.
Dans ce didacticiel, nous allons voir comment activer la recherche multilingue pour votre site traduit ou commerce électronique multilingue boutique. Le tout sans écrire la moindre ligne de code ni modifier la fonctionnalité de recherche par défaut de WordPress.
Le processus est vraiment simple et tout ce qui est nécessaire pour traduire votre site en plusieurs langues ainsi que pour activer la recherche multilingue est TranslatePress, un puissant plugin de traduction pour WordPress.
TranslatePress Multilingue
Prêt à découvrir comment le configurer ? C'est parti !.
Recherche multilingue dans WordPress
Selon l'outil de traduction que vous utilisez, la prise en charge d'une recherche multilingue sur WordPress peut s'avérer assez difficile.
C'est parce qu'en traitant différents types de contenus : publications, produits, pages, types de publications personnalisées ou champs personnalisés, l'affichage des résultats de recherche pertinents (dans la langue sélectionnée) est délicat.
De par sa conception, TranslatePress ne tient pas compte de la manière dont votre contenu a été créé. Il peut s'agir d'une page créée à l'aide d'un éditeur de pages tel que Élémentor ou un Produit WooCommerce, vous pourrez le traduire visuellement, directement depuis l'interface.
Et une fois installé, TranslatePress rendra automatiquement multilingue la fonction de recherche par défaut de WordPress.
Voyons comment ça marche.
Rendre la recherche WordPress multilingue avec TranslatePress
TranslatePress garantit que l'ensemble de votre contenu traduit est consultable via la recherche, en améliorant la fonctionnalité de recherche par défaut de WordPress.
Installation de TranslatePress et sélection des langues de traduction
Pour commencer, il suffit d'installer et d'activer le plugin TranslatePress gratuit sur WordPress.org.
Une fois le plugin activé, rendez-vous sur Paramètres → TranslatePress pour choisir la ou les langues que vous souhaitez utiliser.
Tout d'abord, choisissez la langue par défaut, c'est-à-dire la langue dans laquelle le contenu de votre site Web existe actuellement. Ensuite, ajoutez les nouvelles langues de traduction que vous souhaitez proposer. Nous allons ajouter “ l'espagnol ” pour ce tutoriel.

Avec la version gratuite de TranslatePress, vous pouvez traduire votre contenu dans une nouvelle langue, tandis que la version premium La version TranslatePress vous permet d'utiliser un nombre illimité de langues.
Dans les paramètres « TranslatePress », vous pouvez également configurer d'autres éléments importants, comme l'ajout et la personnalisation d'un sélecteur de langue front-end. Par défaut, le plugin ajoutera un bouton de sélecteur de langue flottant dans le coin inférieur droit de votre site qui vous suit lorsque vous naviguez sur le site.
Cliquez sur “ Enregistrer les modifications ” et vous êtes prêt à commencer la traduction.
Traduisez le contenu de votre site web
Il ne reste plus qu'à commencer à traduire le contenu de votre site web. Pour cela, cliquez simplement sur le “Site” ou accédez à l'interface publique de votre site web et cliquez sur le bouton “Traduire la page” icône de la barre d'outils WordPress.

Cela ouvrira un éditeur de traduction visuel (similaire au « Customizer »), dans lequel vous verrez un aperçu en temps réel du contenu de votre site web à droite et une barre latérale de traduction à gauche.
Pour traduire un texte, il suffit de passer la souris dessus, de cliquer sur l'icône en forme de crayon et de saisir la traduction. Appuyez sur Sauvegarder Et voilà, c'est terminé.

La traduction est mise à jour instantanément. Vous répétez simplement le même processus pour toutes les chaînes restantes d'une page, jusqu'à ce que tout le contenu de votre site soit traduit. C'est aussi simple que cela !
Outre le texte, TranslatePress vous permet de traduire une grande variété d'éléments : allant de images avec du texte, curseurs à formes et pop-ups. Vous pouvez utiliser la même approche de traduction visuelle pour tous.
Pour une approche plus étape par étape, consultez ce guide sur Comment créer un site WordPress multilingue.
Pour accélérer les choses, vous pouvez commencer par activer Traduction automatique avec les paramètres TranslatePress, en utilisant soit Traduction Google ou DeepL. Une fois cette fonctionnalité activée, chaque page de votre site sera automatiquement traduite lors de la première visite.

Il est important de savoir que la traduction automatique de tout contenu à l'aide de TranslatePress n'est effectuée qu'une seule fois, ce qui permet de réduire vos coûts et reduces page load time.
The plugin then stores the automatic translations in your database and loads them when needed. No other API calls to the automatic translation services.
After all your website content has been automatically translated, it’s highly recommended that you manually refine the translations that sound off or are out of context.
To find out more about setting up automatic translations, check out How to Automatically Translate Your WordPress Site (fast and with minimal costs).
Add a WordPress Search Form to your Multilingual Website
Now that you have your site fully translated all that’s left is to see the multilingual WordPress search in action.
For this, we’ll start by adding a standard WordPress search form to it. The simplest way to add a search form to your site is by using the Search widget that WordPress offers.
You can add this to any sidebar defined by your theme.

We’ll go ahead and add a search form to our blog, to make it really easy for people to find articles on topics they’re interested in.
Here’s what it looks like:

Now, let’s browse the blog in Spanish and try searching for a Spanish keyword to see the results. We’ll search for “marca” which is the corresponding Spanish translation for the English “brand”.

As you noticed only Spanish content is displayed, that either contains the “marca” keyword in the title or content of a post, page, product etc.
That’s it. With the help of TranslatePress, the default WordPress search form will display only content in the selected language, relevant to the searched keyword.
Recherche WooCommerce multilingue
The same thing applies if you’re building a magasin WooCommerce multilingue and are looking for an easy way to let visitors search for products in their language.
Making products and product descriptions available to your customers in their native language is a great way to boost conversions and increase revenue.
Multilingual WooCommerce Product Search
If you’d like to narrow down the multilingual search results to products only, you can easily achieve this by using the Product Search widget which WooCommerce offers.

Again, TranslatePress will make sure the product search results shown are in the selected language and relevant to the search term used.

By using the product search to look for products related to “marca” (“brand” in Spanish), we’ll get only the relevant products – in Spanish.
La recherche multilingue fonctionne-t-elle avec n'importe quel plugin de recherche WordPress ?
As you’ve seen by now, TranslatePress will enhance the default WordPress search or WooCommerce product search making them multilingual ready. But what happens when you use other WordPress search plugins?
As long as the WordPress search plugins you’re using are based on and filter the default WordPress search results (using proper hooks), multilingual search will work, and TranslatePress will make sure you get language-specific search results.
If you are looking for a fool-proof solution, a great recommendation is JetSearch by Crocoblock, which is fully compatible with multilingual setups, and also integrates with popular page builders like Elementor, WordPress editor, and Bricks Builder.

It supports search across all post types, including WooCommerce products, custom fields, user meta, and more – all while displaying results instantly without reloading the page.
Whether your visitors are searching in English, Spanish, or any other language, JetSearch paired with TranslatePress ensures they see results in the right language – improving both UX and accuracy.
If you’re a fan of AI-integrated solutions, Queryra could be another good option for you. Queryra integrates seamlessly with TranslatePress, allowing your visitors to search and receive results in their currently selected language.
Powered by AI semantic search, Queryra understands user intent beyond exact keywords, delivering accurate multilingual results naturally across your translated content and WooCommerce products.

There are other good options out there, however, you’re using a search plugin that doesn’t work with TranslatePress out of the box, you can still use this custom solution.
We’re looking to support all popular search plugins, so if you’re using one where multilingual search using TranslatePress isn’t working, please contacter ici.
Configurez dès aujourd'hui la recherche WordPress multilingue
As you’ve seen by now TransaltePress makes it really simple to translate your WordPress site and add a multilingual search form to it.
TranslatePress Multilingue
You can either translate the content manually, using the visual translation editor, or use automatic translation to speed things up and simply refine what’s needed.
Once your site is fully translated, using multilingual search your visitors or customers can easily find and browse the relevant content or products in their native language.
Do you still have questions about multilingual search in WordPress? Let us know in the comments!
Si vous avez trouvé ce message utile, consultez notre Chaîne YouTube, où nous téléchargeons constamment des tutoriels vidéo courts et faciles à suivre. Vous pouvez également nous suivre sur Facebook et Twitter pour être le premier à savoir chaque fois que nous publions.
Bonjour,
Thanks for this article which I read with interest. Does this means the search only searches the subdirectory? So, in this case, http://www.website.com/es.
So, if we take the case of an English website (www.website.com) that contains the word “investigation” and the French version (www.website.com/fr) which also includes the French term “investigation”, I will only get French results if I search while I am on http://www.website.com/fr. Is this correct?
Yes Grant, that is correct. The search will only display results in the selected language.
It makes sense to be this way, as it would be really confusing for your readers to show results in multiple languages.
Hi, I am using translatepress but when I search in German terms in German part of my site https://lovefoodfeed.com/de/ I get no results. What am I doing wrong?