Skip Navigation

[Resolved] Place parametric filters under map

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

Problem:
You have a view set up with parametric search which plots posts onto a map.
The map markers can be filtered using a Parametric Search.
Additionally, you list content (already plotted to the map too) under the map

You want to display the filters under the map but above the additionally listed content.

Solution:
You create the Map + Content in the View Loop section and the Parametric Search Filter is created in the Parametric Search Filter editor.

Then you display / join them in the Filter and Loop Output Integration of the View.

Those are 2 different things, displayed separately, but also not "separable" themselves.

Since the Map is actually inserted OUT of the Loop (previous to the Loop tags) you are able to insert the Filter ([wpv-filter-meta-html]) just below it, previous to the Loop.

So the Views Loop Code section looks similar to this:

[wpv-layout-start]
    [wpv-items-found]
    <!-- wpv-loop-start -->
//map shortcode
[wpv-filter-meta-html]
        <wpv-loop>
//other map and loop shortcodes
                </wpv-loop>
    <!-- wpv-loop-end -->
    [/wpv-items-found]
    [wpv-no-items-found]
        <strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
    [/wpv-no-items-found]
[wpv-layout-end]

Please then remove the

[wpv-filter-meta-html]

from the section "Filter and Loop Output Integration"

This support ticket is created 8 years, 2 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.

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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 2 replies, has 2 voices.

Last updated by stewartE 8 years, 2 months ago.

Assisted by: Beda.

Author
Posts
#368627
mockup.PNG
Edit View ‹ Demo — WordPress.png
filters.PNG

I have a view set up with parametric search which plots posts onto a map. The map markers can be filtered using a select dropdown.

The post titles are also listed under the map

Basically I want to display the filters under the map but above the list of post titles.

Thanks

#368916

You create the Map + Title of Posts in the View Loop section and the Parametric Search Filter is created in the Parametric Search Filter editor.

Then you display / join them in the Filter and Loop Output Integration of the View.

Those are 2 different things, displayed separately, but also not "separable" themselves.

Since the Map is actually inserted OUT of the Loop (previous to the Loop tags) you might be able to insert the Filter ([wpv-filter-meta-html]) just below it, previous to the Loop.

So the Views Loop Code section looks similar to this:

[wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
//map shortcode
[wpv-filter-meta-html]
		<wpv-loop>
//other map and loop shortcodes
                </wpv-loop>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]

Please then remove the [wpv-filter-meta-html] from the section "Filter and Loop Output Integration"

I am not sure this will work in every case of a parametric Search, as the [wpv-filter-meta-html] ShortCode is supposed to be used only in the Filter and Loop Output Integration, you will need to do some tests to see if the output is correct.

#369552

That worked - thanks!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.