Designs & Code

Design, Development and WordPress

Search & Filter has moved home! Head to searchandfilter.com

If you had an account with us, don't worry, we've moved that too. Head on over to to our new website to download and access support.

These are the old docs and will be removed soonnew docs have moved here

—————————————————————-

To get started, we need to enable translations for the Search & Filter post type.

1) Enable translations

In the WordPress dashboard, under WPML head to:
Translation Management -> Multilingual Content Setup -> Custom Posts

Then enable translations for Search & Filter:

sm-custom-posts

 

After this you will notice that WPML is integrated as the flags have been added to the Search & Filter admin screen:
sm-flags

2) Duplicate your Search Form for each language

Edit your Search Form in the primary language of your site.

Then on the edit screen duplicate the current Search Form for each language – this copies over the structure of your fields & settings in to the selected languages:

sm-translate-yourself

3) Translate manually

Edit a translation:

sm-flags-edit-translation

 

And select translate independently:

sm-translate-independently

Note: Once this step is complete, your Search Forms are no longer synced – this means changing a setting, or adding a field in one language, will not automatically apply to the translations – you must manually update each translation with your changes.

An additional step when using a shortcode to display results

This does not include when using a shortcode to display the Search Form itself

To display your Search Results on the correct page for each language, you must update the `Results URL` for each translation and point it to the correct page – this includes the “lang” query parameter (eg – ?lang=es) where applicable:

sm-template-options

Notes

  • Search & Filter automatically translates tag, category, and taxonomy IDs when creating duplicates in other languages.
  • When displaying results using the Archive method, slugs can be defined individually for each language or share the same one.

 

Looking for Search & Filter Pro?

Find out more Demo 1 (Movies) Demo 2 (WooCommerce)