Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Working with the new Views Dependent values for parametric searches

$
0
0

I've been waiting for the new features for parametric searches and really excited that they have arrived! I have a couple of issues with the new features which I need your help with.

If you could browse to my website are http://audio-gear.org/ On the left hand side you can see the parametric search filters.

'Listing Categories' is a custom taxonomy with the slug 'listing_cat'

'Manufacturers is a parent (slug is 'company') of the displayed post type 'listing'.

Filter coding is as follows;

<div style="top">
[wpv-filter-start hide="false"]
[wpv-filter-controls]

  [wpml-string context="wpv-views"]<b>Listing Categories</b>[/wpml-string] 
		[wpv-control taxonomy="listing_cat" url_param="wpv-listing_cat" type="checkboxes" default_label="Browse by" format="%%NAME%%(%%COUNT%%)"]<br>
  
[wpv-control-set url_param="wpv-pr-child-of" ancestors="company"]
[wpml-string context="wpv-views"]<b>Manufacturers</b>[/wpml-string]<br>  
[wpv-control-item type="select" ancestor_type="company" default_label="select all" format="%%NAME%%(%%COUNT%%)"]
[/wpv-control-set]

<br><br>
[wpv-filter-reset reset_label="Clear filters"]

[/wpv-filter-controls]
[wpv-filter-end]
</div>

The two filters are configured to show only those options which meet both search criteria and this is working correctly.

Here are my two issues;

1. In the taxonomy 'listing_cat', the post count does not update to reflect the actual number of posts displayed by the combination of the two filters. So, for example, if you first select the manufacturer 'Cambridge Audio' then you (correctly) get 3 posts displayed but a total count of 5 posts shown in the Listing Categories. This is not consistent with the actual displayed posts.

2. In the 'Manufacturers' select box I cannot get the post count to display. Looks like this feature has not been included in the wpv-control-item attributes which is a problem for my application.

Can you help me solve these two issues please.

Regards

Robert


Viewing all articles
Browse latest Browse all 20145

Trending Articles