Skip Navigation

[Resuelto] Seperate the view for search query and search result,eg the query on the sidebar

This support ticket is created hace 4 años, 11 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Etiquetado: 

Este tema contiene 2 respuestas, tiene 3 mensajes.

Última actualización por Christian Cox hace 4 años, 11 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#1389651

Tell us what you are trying to do? Seperate the view for search query and search result, eg the query part of the search on a sidebar, and the search result in the main area of the page.

Is there any documentation that you are following? No

Is there a similar example that we can see? Yes, enlace oculto
Instead of the "SUBSCRIBE" on the side, I would like to have the toolset search query view there. But the result is displayed in blog post area.

What is the link to your site? enlace oculto

#1389989

Also Interested in knowing how...

#1390493

Hi, generally speaking there are two ways to accomplish this, depending on how your site is built.

1. Activate the Output Editor panel in the Screen Options tab if it is not visible in the View editor screen. Use the Output Editor panel in the View editor to add the HTML markup necessary to create the page structure, separating the filters (the wpv-filter-meta-html shortcode) from the results (the wpv-layout-meta-html shortcode) using your own custom HTML and CSS. This approach only works within the View editor - you cannot use the wpv-filter-meta-html or wpv-layout-meta-html shortcodes outside of a View, and it requires some knowledge of HTML and CSS.

2. Insert only the search filters or only the results when inserting the View. Depending on how your site is built, the process may be a bit different. Generally if you want to insert the filters or results somewhere that accepts shortcodes, use the Fields and Views button above any content editor and select the View you want to insert. The next popup screen after you choose your View should include options where you can insert only the search filters, only the results, or both filters and results. This is your opportunity to split the View and display the filters and results in separate areas of the same page. The system will generate the appropriate shortcodes for you based on your selections, then you can cut and paste those shortcodes in the sidebar widget or main page content, etc., based on how those elements are created in your theme.

If you're using a page builder or the Blocks editor, the process may be a bit different. You may have a Views block that is used to insert the View. In the block settings, you should be able to choose filters, results, or both. You should use two different Views blocks - one for the filters and another for the results. Or if there is no View block or View element in your page builder, the process is similar to above where you generate the proper shortcodes in some custom Page, then cut and paste them into an HTML block element in your page builder.