Newspaper 12.7.6 search results page returns no results with Relevanssi

Posted in: Newspaper
Post count: 2

Hello,

I’m using the Newspaper theme (version 12.7.6, with tagDiv Composer) on my live news site zzpnieuws.nl, which has an archive of 1,100+ articles. I want to use the Relevanssi search plugin to improve site search, but the search results page returns no results when Relevanssi is active.

What I’ve confirmed:

– With Relevanssi active, the search results page (e.g. /?s=schijnzelfstandigheid) shows “no results” for terms that appear hundreds of times in my archive, even though Relevanssi’s index is fully built and correct (1,122 documents, ~139,597 terms; posts and pages both included) and all Relevanssi settings are correct.
– The moment I deactivate Relevanssi, the theme’s native search works again immediately and returns the expected results. So the theme search itself is fine; the conflict is specifically between the search results template and Relevanssi.
– This persists on the latest version 12.7.6, with all caches cleared.

I’ve read an earlier reply from your team (Bettina) to another user, suggesting to edit the search page with tagDiv Composer and use a Flex Block with the filter “Search: Current Search” and no offset value. I’d like to apply this correctly but I’m not sure which template controls my search results page.

My questions:

1. Which template controls the search results page in the Newspaper theme – is it a Cloud Library template, a dedicated Search template in the Website Manager, or the theme default? I have a custom archive page that contains the search form, but the results appear on a separate /?s= page.
2. How should the Flex Block (“Search: Current Search”, no offset) be configured so the search results respect Relevanssi’s output instead of the theme’s own query?
3. Is there a recommended filter or hook for this that survives theme updates, rather than editing a core theme file?

I have a full backup in place and can provide temporary admin access through the official support channel if needed. This isn’t urgent – native search is working as a fallback – but I’d like to know the correct way to integrate Relevanssi with your theme.

Thank you,
Marco Weeber
zzpnieuws.nl

Post count: 20688

Hi,

While I haven’t tested the plugin myself, I suggest using a regular post loop in the search template, meaning either of these two -> https://prnt.sc/SjVO_yiOaVck So not a flex loop, or a flex loop builder, or a block.

From what I see you are using a cloud template for the search results, is there no option to edit it with the composer? There should be one directly in the admin bar -> https://prnt.sc/Bsw1_b8OQH1j Or the option from the cloud library dashboard -> https://prnt.sc/lLMGfC8RQPvS

Then replace the flex loop builder that you are currently using in the search template with one of those two basic loops. Then it should work. If it does, then all that’s left is to customize the design of the loop to match the website a bit.

I hope it works fine.

Thank you!

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