Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 3 replies, has 3 voices.

Last updated by cordulaB 4 years, 2 months ago.

Assigned support staff: srdjan.

Author Posts
September 25, 2017 at 7:57 pm #1382806

annaT-7

When I search in one language, I only want results in that language to show up.

Right now, if you search for something and it is found in posts in other languages, then the posts in other languages show up in the search results.

hidden link

I expected to see only English posts, instead there are Spanish and Portuguese posts.

I set up the language hook on the form:

https://wpml.org/wpml-hook/wpml_add_language_form_field/

But it's not working, thoughts?

September 26, 2017 at 1:24 pm #1383630

srdjan

Hello Ana,
do you still experience same issue?

I visited your site and switched language on search template,
appears working as expected (posts are filtered - English only EN posts, Spanish only ES posts).

September 26, 2017 at 10:10 pm #1384232

annaT-7

Yes, I was able to resolve it. Thanks!

March 4, 2019 at 9:33 am #3267715

cordulaB

Hi,

I have the same issue. Where exactly do I have to place to hook to make it work?

Best Regards

Jens