Skip Navigation

[Resolved] Search results page is showing search fields despite search being turned off

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 7 replies, has 3 voices.

Last updated by Minesh 8 months, 4 weeks ago.

Assisted by: Minesh.

Author
Posts
#2682084

I have a search on the homepage with the search results on a separate page: hidden link.
On the results page, despite the search not being enabled, the search fields are visible below the search results.

#2682101

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

The page you linked to is protected and you didn't provide a server-protection password.

It's not obvious what problem you are describing without seeing it.

Let me set another private reply to get the full credentials from you.

#2682107
#2682187

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

When I try to access the admin login page it shows me only "Password" field and it shows in URL "password-protected=login".

If you are using any security plugin - please either share access details so that we can access the login page or disable the security plugin.

I have set the next reply to private which means only you and I have access to it.

#2682273
#2682570

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

It seems there is something wrong as I see you are using block view.

Can you please confirm you try to follow the steps given with the following link:
- https://toolset.com/course-lesson/creating-a-custom-search/#display-the-search-box-and-search-results-on-different-pages

Does that helps?

#2682922

Your wording is confusing -- is using a block view problematic?
Yes, I followed your documentation to create the search form and the separate results area.
Can you please tell me why the search fields are showing, and how to remove them? They are not turned on so I don't know why they are showing.
Alternatively, I would be okay with them showing, but I would want them at the top of the page, and they would need to display the terms that were used for the current search. Thanks

#2683289

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I checked and I found that there is something not working as expected. This may be due to how you added your view or something else or view is corrupted.

After creating your view - what if you try to add your view using the shortcode as given under:

- To display Search form:
[wpv-form-view name="property-search-homepage" target_id="2860"]

- To display Search Result:
[wpv-view name="property-search-homepage" view_display="layout"]
#2683293

Thank you, I replaced the two Views blocks with shortcodes and both are now showing up correctly.
But, now how can I make an edit to the search results View? When I go to Toolset > Views, it says "This View can only be edited in the Block Editor from within the post that includes it." If I follow the link to edit it, it brings me back to the page where I inserted the shortcode -- so I don't get a way to edit the View.

#2683326

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've added that original view on this test page I've created and test page is set as draft:
- hidden link

You can make modification to your view and save it and check if you see those modifications on frontend with your result page.

#2683428

Okay, so the only way to edit the View is to insert it into a test page (or insert it in the existing search results page and then remove it after editing). Please let me know if I'm misunderstanding.

I see that even when you inserted it into a test page, the search fields are still displayed at the bottom despite being turned off. I know we have a workaround but it's not ideal, so I do ask that you continue to troubleshoot the issue on your end. Thanks!