Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FSE themes not displaying Search results by default (Inherit query from template not working) #61676

Closed
1dr0 opened this issue Mar 6, 2022 · 8 comments

Comments

@1dr0
Copy link

1dr0 commented Mar 6, 2022

Quick summary

FSE themes are not displaying search results by default (inherit query from template setting is active by default).

Screen.Recording.2022-03-06.at.13.36.07.mov

In the 2:06min screen recording above:

  • Selects FSE-ready themes.
  • Front-end search results show the number of pages that have the search term but are not displaying the results in the Query Loop.
  • Edits the Search template in the Site Editor to select the specific query type (post type), which partially resolved it.
  • Switched to Storefront theme and the search results are displayed by default.

Currently tested on Atomic sites.

Steps to reproduce

  1. Select and activate any FSE-ready theme.
  2. Front-end search results show the number of pages that have the search term but are not displaying the results in the Query Loop.
  3. Edits the Search template in the Site Editor to select the specific query type (post type; anything except "Inherit query from template"), which partially resolved it.
  4. Switched to Storefront theme and the search results are displayed by default.

What you expected to happen

The search results are to be displayed by default and without specifically setting the results for a post type.

What actually happened

The Query Loop block is not showing the search results.

Context

No response

Simple, Atomic or both?

Atomic

Theme-specific issue?

No response

Browser, operating system and other notes

No response

Reproducibility

Consistent

Severity

No response

Available workarounds?

No response

Workaround details

No response

@renata-franco
Copy link

This is a confusing one, but I think this ticket has the same issue 4832634-zd-woothemes

@Robertght
Copy link

Robertght commented Mar 8, 2022

@1dr0 Thank you for reporting this! I tried to replicate it, but I had no luck yet.

As we discussed here it appears to be a plugin conflict with the Relevanssi plugin for @renata-franco 's case above. @1dr0 can you check if that's similar to your case, please? If not, could you share the website with us?

@renata-franco
Copy link

renata-franco commented Mar 8, 2022

@1dr0 Thank you for reporting this! I tried to replicate it, but I had no luck yet.

As we discussed here it appears to be a plugin conflict with the Relevanssi plugin for @renata-franco 's case above. @1dr0 can you check if that's similar to your case, please? If not, could you share the website with us?

The site is https://boozemusings.com/ and they do not have Relevanssi plugin.

EDIT: they have it but deactivated.

@mrfoxtalbot
Copy link

For reference, the Relevanssi-related issue @Robertght mentioned is this one. Could you please confirm if the site where you noticed this was using any search plugins? Thank you!

@1dr0
Copy link
Author

1dr0 commented Mar 9, 2022

Updating this thread:

Good catch @Robertght! I have Relevanassi active on my site during the test. Deactivated it and I was able to display the search results.

@mrfoxtalbot
Copy link

Thank you for confirming @1dr0 !

I'm going to go ahead and close this but please feel free to open it if you need to add anything @Robertght .

@masperber
Copy link

masperber commented Mar 18, 2022

I'm not sure if this is the same issue or a new issue, but reopening this because I have a similar issue with search on a simple FSE site.

34743444-hc / 4872709-zen

Simple site. User has a Search Block on the home page and the Kerr theme active. There are posts titled "Teaching with Monopoly" and "Teaching with Monopoly 2.0" which are not returned within the first 40 results by searching "Monopoly" or even by searching the exact title of the post.

However, if I switch the site to Twenty Twenty One, the relevant post is the top result.

Not sure if it's relevant, but the site was previously Atomic and was reverted.

Please let me know if a separate issue should be opened.

@masperber masperber reopened this Mar 18, 2022
@Robertght
Copy link

Thank you @masperber !

I'm going to close this in favor of this one: #62137

It appears to be a core issue: WordPress/gutenberg#39285

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants