Search form listing only english version

Posted in: Newspaper
Post count: 6

Hi there!

I’m using the Newspaper theme fully with customized templates for both web and mobile versions of the site in 3 languages (“polylang” plugin).

I tried both “search form” and “header live search” for web, and “mobile live search” for mobile pages with different outcomes:

– Search form on the web shows English posts on any language, when search for german posts keywords it shows no results.
– Header live search on the web shows translated post only when search content contains keyword from the English post. Example: I type: “Body language”, live search shows the post “Körpersprache: Tipps und Tricks”. When pressing “Enter” or clicking “view all results”, it happens the same (already described in “Search form”).
– Mobile live search on mobile pages shows the live search perfectly (example: typing “Körper” shows the live result of the post “Körpersprache: Tipps und Tricks”, but when entering all results it happens the same as above described – no results.

Subdirectories:
https://enigmaexpert.com/
https://enigmaexpert.com/de/
https://enigmaexpert.com/sr/

What am I doing wrong? Could you please check it for me?

All best to the Newspaper Theme Team! 🙂

Post count: 27744

Hello,

Please access the search page results, edit it with the tagDiv Composer, and check if you have the sort order: Latest and without no limit or offset: https://www.screencast.com/t/8aQXkhkNatrA

Thank you!

Post count: 6

Hello,

thank you for the response, still no results.

I researched the web a lot about the issue, and my opinion is that the searchform.php and search.php are not coded well, the search form doesn’t keep my header of the current language (it switches to the English version), but some of the content keeps the language template (German).

Post count: 6

Example: https://disk.yandex.com/i/d8QPYOTwtRhovQ
Additional: Footer keeps the german version of the site.

It might not be the issue with the Theme, still it would nice if you could give me some tips on how to solve this issue since I’m a newbie with PHP.

I see in the code that “home_url” is the probable redirection to the homepage, and there is only one on the site. I can’t make my subdirectories /de and /sr as additional homepages.

How do I implement “pll_current_language” into the code? I can send you the screenshots of the PHPs if you like.

Thank you!

  • This reply was modified 4 years by Slavisai.
  • This reply was modified 4 years by Slavisai.
Post count: 27744

Hello,

Please make sure you have set right the polylang plugin -> https://polylang.pro/doc/translating-pages-posts-categories-and-tags/
Also, please do a test only with tagDiv plugins and polylang plugin.
We could take a look at the problem, and send us wp-admin and cPanel/FTP login at contact@tagdiv.com so we can investigate. If there are more details about the problem, mention them in the email, and also include a link to this topic.

Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.