Skip Navigation

[Resolved] Custom search block not visible on archive page

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Waqar 2 years ago.

Assisted by: Waqar.

Author
Posts
#2679074

Tell us what you are trying to do?
I am making an archive page with a search box on the top.
The section called WordPress Archive Search appears in the block editor.
On the frontend nothing is visual from the hole section. I even put a plain text block in it.

in the frontend code only <div class="wp-block-toolset-views-custom-search-container"> </div>
With no content.

I added Relevanssi and re-indexed with the available custom fields.

Is there any documentation that you are following?
Yes, https://toolset.com/lesson-placement/lesson-placements-1647613-1622285/#add-a-custom-search-to-an-archive
https://toolset.com/course-lesson/creating-a-custom-search/

What is the link to your site?
You can view the archive page: hidden link

Thanks for helping
Michel

#2679092

Hi Michel,

Thank you for contacting us and I'd be happy to assist.

Have you checked the server's error logs for any errors or warnings? I'll recommend temporarily turning on WordPress debugging and see if any errors or warnings are recorded.

To troubleshoot this further, I'll suggest the following steps too:

1. Please make sure that WordPress, active theme, and plugins are all updated to the latest versions.

2. It would be interesting to test this with all non-Toolset plugins disabled and a default theme like Twenty Twenty-One.

If it's fixed, you can start adding the disabled items, one by one, to narrow down to a possible conflicting one.

3. In case the issue persists, I'll need to see how this archive's search is set up in the admin area. You're welcome to share temporary admin login details, in reply to this message.

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

regards,
Waqar

#2679586

Thank you for sharing these details.

When I checked the archive 'Patiëntenverenigingen Archive', I noticed a 'Custom Search Filter' block was there. However, the settings of that block were not completed.

I completed its settings and the search form is showing now.

Screenshot Backend: hidden link
Screenshot Frontend: hidden link

Note: The errors that you've shared are not related to the current ticket's topic. But, if you face any challenge or difficulty using Toolset functionality, feel free to start a new ticket.

#2679757

Hi Waqar,
I don't now what you did but the search box is visible. Great!

BUT

I get only search results for searching in the title of the post.
There is another custom field I need search results from: "Disease organisation".
This is a repeating field. I have also opted in "Include in search".

I changed the setting of the Custom search filter "Where to search" to "Title, body and custom fields".
I have installed Relevanssi and re-indexed. No change.

How can I adjust this?

Thanks for helping
Michel

New threads created by Waqar and linked to this one are listed below:

https://toolset.com/forums/topic/split-custom-search-with-relevanssi-not-covering-a-custom-field/

#2679805

Thank you for the update and glad this is sorted now.

I've created a separate ticket for your question about the custom field not getting included in the text search.
( ref: https://toolset.com/forums/topic/split-custom-search-with-relevanssi-not-covering-a-custom-field/ )

You're welcome to mark this ticket as resolved and start a new one, for each new question or concern.