[Resolved] How to Add Heading on Views Layout's List?
The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 5 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.
Create two Views
View A => Lists the taxonomies of the post type you need
View B => Lists the posts of each taxonomy
View A configurations:
-- Content Selection: Taxonomy (Then select the taxonomy you need)
--in the loop output editor of View A, add the category title
-- Insert View B in the loop output editor of View A (Using the Fields and Views button)
-- Pass the Taxonomy slug to View B as shortcode attribute.
<wpv-loop>[wpv-view name="View B" wpvcategory="[wpv-taxonomy-slug]" ]
Later you will use this wpvcategory shortcode attribute in view B.
View B configuration:
-- Content Selection: The post type you need
-- Query Filter
----Add a Query Filter that filters by taxonomy (Just Click the add filter button, it's self explanatory)
----Select (The category slug) is (Any of the values) coming from the Shortcode attribute (wpvcategory)
--Scroll to the Loop output editor of View B and add whatever you want
What I want to achieve is the filtering of 4 taxonomies similar to: hidden link
In the link above, the taxonomies are Alphabetical, Category, Floor and Zones
If you click any of the filter (attached screenshot), you will see their list is sorted with the Taxonomy name as the <h1> in the same page
Now, what I have setup one Taxonomy view, which is Category.
Link: hidden link
This page was setup based on your guide ( View A + View B )
I haven't create a separate View for Floor and Alphabetical yet because I need a guide to combine Floor and Alphabetical Taxonomies as filter option for front end user to enable them to sort the list in the same page (with similar link and search form as screenshot attachment) hidden link
I think it will be the same idea. you will need to create a page, add the main categories names manually as headings (Timepieces & Optical, Specialty & Services, Health, Beauty & Wellness, Facilities)
For each of these categories names, you will need to create a taxonomy View A and for each taxonomy View you will need to create a posts view B that will list the posts depending on the views shortcode attribute that will be passed from View A.
If it's a testing site, we can work on this together.
I will just need the admin credentials to your website to prepare an example for you on the website.
I will set the next reply as a private one in case you preferred to provide the credentials.
Since you mentioned that search doesn't work natively in View, what shortcode should I use to let user filter between the 3 views? This shortcode below only work for filtering one Taxonomy, not filtering View.