Skip Navigation

[Resolved] Search Filters and Search Results in separate pages in Oxygen

This support ticket is created 4 years, 11 months 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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 4 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#1474603

Tell us what you are trying to do?
- From your tutorials that I have found, I understand that the Search Filters and Search Results are on the same page (or a view).
- In my application, I like to have a shortcode for the Search Results part so that I can insert it onto my Oxygen page.

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

I will greatly appreciate it if you can provide me with some hints or references for that issue.

Thank you very much again.

Woogon Peter Chung

#1474937

Nigel
Supporter

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

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

Hi there

Without setting up an Oxygen test site I'm not sure how Views are inserted, but you should be able to split your View—the search form and the results—across pages by generating shortcodes to insert the View in the required formats.

If you can edit a page with the classic editor that has the Fields and Views button available to insert the View then you would see the UI has the options for splitting the search and results onto separate pages (screenshot), and that results in shortcodes like this:

// On the search page
[wpv-form-view name="search-projects" target_id="84"]

// On the results page
[wpv-view name="search-projects"]

Note that the search page uses the shortcode wpv-form-view and specifies the ID of the page that will contain the results, while the results page uses the normal wpv-view shortcode.

Can you insert those shortcodes, modified for your View slug and the ID of the target page?