Skip Navigation

[Resolved] Reorder map, filter and search result in a view

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

Problem:

I am trying to "reorder" the position of the standard search view:
i need to position the map with all the markers first, then beneath the search form, and the results beneath the search form

Solution:

You can edit your post view, in section "Output Editor", change the shortcodes to:

[wpv-layout-meta-html]
[wpv-filter-meta-html]

Createa new view without the map render but keeping the map markers in the loop.

Then add the map shortcode placing and connecting the "map-id" of the marker with the id of the map.

Relevant Documentation:

This support ticket is created 5 years, 10 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
- 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 sachaB 5 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1184772

Tell us what you are trying to do?
I am trying to "reorder" the position of the standard search view:
i need to position the map with all the markers first, then beneath the search form, and the results beneath the search form

Is there any documentation that you are following?
Forums

Is there a similar example that we can see?
Not that I am aware

What is the link to your site?
hidden link
Here I managed to place the map (+ search results) on top and the search form beneath it.

#1184902

Hello,

I think it is possible, for example, you can edit your post view, in section "Output Editor", change the shortcodes from:

[wpv-filter-meta-html]
[wpv-layout-meta-html]

To:

[wpv-layout-meta-html]
[wpv-filter-meta-html]

The shortcode [wpv-filter-meta-html] is for rendering search form, the shortcode [wpv-layout-meta-html] is for rendering search result.

More help:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-layout-meta-html
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-filter-meta-html

#1185040

Hello Luo,
With this I'm half way towards the solution:
I need to split the map from the results with the CPT data and place the results beneath the search form.

1.Map (with the markers based on the search form)
2. Search Form
3. Search Results (without the map)

What is happening now is that i always have in one "block" the map with the search results.

I am still playing around, so the url I gave will change its content.
Thanks in advance for the help

#1185089

My issue is resolved now.

I created a new view without the map render but keeping the map markers in the loop.
Then I have added on my page the map shortcode placing and connecting the "map-id" of the marker with the id of the map.