Skip Navigation

[Resolved] Resolution for a Problematic Search Results Display

This thread is resolved. Here is a description of the problem and solution.

Problem:

Display the search form and search result in different places/pages.

Solution:

You can display the search result and custom search form in different place, for example:

https://toolset.com/forums/topic/resolution-for-a-problematic-search-results-display/#post-1152946

Relevant Documentation:

https://toolset.com/documentation/user-guides/front-page-filters/#4-1-adding-the-custom-search-form-to-a-page-or-widget

This support ticket is created 6 years ago. There's a good chance that you are reading advice that it now obsolete.

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years ago.

Assisted by: Luo Yang.

Author
Posts
#1152647

I seek support with an alternative site search configuration alternative that I have to resolve a long-standing ticket issue.

THE PROBLEM BEFORE: A shortcode had been placed in the homepage with a Divi text module in the second section for a responsive 3 column search form and another code placed in a Divi text module in the third section. There was a secondary page where the form and results had been placed. The secondary location had minor issues displaying the results correctly but the homepage was highly problematic with many tickets on the issue.

PROPOSED RESOLUTION: Since the static subpage displayed results with fewer distortions I would like removed the search form and the results shortcode from the homepage entirely.

I created a new page titled /search/ and placed the results shortcode in the top Divi section and the form shortcode for the search in the second Divi section below the results.

hidden link will be the only search form and results display for the site.

This single form and results display can be reached from two locations 1. clicking the "Search Other Work" link on the homepage: hidden link and 2. clicking the "Search" link in the top navigation on subpages.

Due to the initial setup of the previous configuration and the long support ticket history with related issues, I respectfully ask your help with editing the previous Toolset configuration enable the functionality of the new proposed configuration.

When someone lands on hidden link the form ONLY should appear at the top of the page.

No results should display until a search form query has been submitted.

After a search is submitted and there are results > a single responsive 4-column table-based row should appear at the top of the page sourced by the shortcode placed in the Divi text module in section one, above the form shortcode in the section module below.

Each time a pagination link is clicked > the next page of results should always begin at the very top of the page.

This would be an ideal solution to a long-standing issue history. I have already configured the Divi page elements.

I ask for your support in making this plan work.

#1152946

Hello,

I think it is possible, you can display the search result and custom search form in different place, for example:
1) Create two wordpress pages:
- search
- search result

2) In the "search result" page (ID 12345), display the default Views shortcode wpv-view, for example:
[wpv-view name="MY-VIEW-SLUG"]
This should be able to display both the search result + search result

3) In the "search" page, display only the custom search form, after user submit this search form, redirect it to the search page, for example:
[wpv-form-view name="MY-VIEW-SLUG" target_id="12345"]

More help:
https://toolset.com/documentation/user-guides/front-page-filters/#4-1-adding-the-custom-search-form-to-a-page-or-widget

See screenshot:
hidden link

#1153133

My issue is resolved now. Thank you!

#1153372

You are welcome