<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Live search: ignores Polylang language and misses content matches]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">My site is <a href="https://www.romnja-power.de" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.romnja-power.de</a> — it's built with the Lay theme and uses the Polylang plugin for multiple languages. I have two related problems with the header live search.</p>
<p dir="auto">How the search behaves: it's a live/instant dropdown. As I type, the results appear below the input, and the only way to open a result is by clicking one. Pressing Enter does nothing and there is no full results page (no /?s=... page). The input has id="search-query" with no name="s", so it's the theme's own AJAX search, not the standard WordPress search.</p>
<p dir="auto">Problem 1 – language: no matter which language I'm browsing in, the dropdown only returns results in the default language. It never restricts results to the current Polylang language.</p>
<p dir="auto">Problem 2 – coverage: the search misses pages that clearly contain the words I'm searching for. It looks like it only matches titles, not the body content. Some of my content may also not be indexed at all.</p>
<p dir="auto">What I've already tried, so you don't have to suggest it:</p>
<ul>
<li>Lay theme and addons are up to date.</li>
<li>I turned off all custom code via Lay Options → Custom CSS &amp; HTML ("Turn Off All Custom Code") and the problem persists.</li>
<li>Enabling "Deaktiviere Ajax / Kompatibilitätsmodus" in the theme options changed nothing.</li>
<li>A custom pre_get_posts filter forcing the language onto AJAX search queries had zero effect, so the live search apparently doesn't run through the standard WP_Query.</li>
<li>The problem happens in Chrome and Firefox on desktop.</li>
</ul>
<p dir="auto">My questions:</p>
<ol>
<li>
<p dir="auto">Can Lay's live search be made to filter results by the current Polylang language? If so, how?</p>
</li>
<li>
<p dir="auto">Does the live search index the full post content (and custom fields / page-builder content), or only titles? Can it be made to search the full content?</p>
</li>
<li>
<p dir="auto">Can the three-result limit be increased?</p>
</li>
<li>
<p dir="auto">If any of this isn't configurable, what action/hook does your AJAX search expose so I can adjust the query myself? I'm comfortable adding a code snippet.</p>
</li>
</ol>
<p dir="auto">Thank you for your help!</p>
<p dir="auto">Best regards,<br />
José</p>
]]></description><link>https://laythemeforum.com/topic/11939/live-search-ignores-polylang-language-and-misses-content-matches</link><generator>RSS for Node</generator><lastBuildDate>Thu, 04 Jun 2026 19:10:33 GMT</lastBuildDate><atom:link href="https://laythemeforum.com/topic/11939.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 04 Jun 2026 13:43:59 GMT</pubDate><ttl>60</ttl></channel></rss>