Skip to content

No Result for Instant Results #41

@burhandodhy

Description

@burhandodhy

Customer has reported an issue where WPML integration is not working with the Instant Results feature. The problem is that Instant Results returns no result when trying to search in a different language. We noticed that this issue is happening because of the post_lang in the instant result template.

If you are using ElasticPress.io, the template can get via CLI command wp elasticpress get-search-template and if you are using the proxy, then it will be found atwp-content/uploads/ep-custom-proxy-credentials.php

image

Steps to reproduce the issue. 

  1. Add two languages. Let's say English and French.
  2. Add some dummy posts. 
  3. Select the French language in the dashboard, enable the Instant Article feature, and let the plugin do the syncing.
  4. Go to the frontend. 
  5. Select the English language. 
  6. Try to search for anything, and it will return no results.
image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions