Front-end filter for Pods Archive pages
-
Hi there,
First off, a big “Thank You” for the Pods plug in. I’ve been looking for something like this for a very long time and, whilst I’m still just getting started, can see enormous potential for the plugin for my clients.
I’ve spent a couple of days looking for a solution and examples to something I’m trying to do but haven’t found anything that actually works the way I want it to. So, I brought my question here.
I’ve created a Pod (‘Properties’) and two taxonomies: ‘bedrooms’ (the number of bedrooms) and ‘location’ (the area it’s in).
I’ve created two Pods templates: ‘property’ (ie the individual; posts showing a property’s full details) and ‘all properties’ (for the ‘property’ custom post type archive page).
The archive page is created by adding a Pods shortcode to a normal WordPress page: [pods name=”property” template=”All properties template”]
All that’s missing now is to add a filter to the (‘all properties’) archive page which will let the visitor select criteria (eg number of bedrooms, location or a combination). It’d be great if this could also work from a search field, where the visitor types a location and/or of bedrooms (or sects these from drop-downs) and only the posts that match the visitor’s selected criteria would show on the archive page (eg: https://www.biketours.com/ ).
I found a lot of answers that mention and use the “Search and Filter” plugin from https://www.designsandcode.com (including tutorials on pods.io). However, I can’t see a way of getting this to output the results in the ‘all properties’ Pods template I’ve created. It seems to perform more of a search than filter ie it outputs matches in a simple ‘search results’-type page rather than filtering what’s shown on the archive page (which uses the Pods template). I know I can modify the style of Search and Filter’s search results output page, but I can see this being used multiple times on a given site for different Pods with different archive page Pods templates, so this won’t work and, anyway, seems like a lot of duplication.
I also found this: https://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/creating-a-search-form/ . That seems to apply to the Pro version, though, which I can’t use (the licence means the plug-in can’t be resold, which means each time I use it for a client, they’d have to purchase it and then stay on top of the annual renewal in order to keep it updated).
– Am I missing something? Is there a way to specify that Search and Filter use a particular Pods template to display a particular search form’s results?
– A much better solution for me would be to put this filter (or search) for the items in the Pods template or on the page where the Pods shortcode is, using Pods native functionality, so I’m not relying on another plugin.
(By the way, I hope you don’t mind me posting this here, rather than on the Search and Filter plugin support page. I thought, as this is specific to Pods, this would be a better place to ask the question.)
Any help would be greatly appreciated.
Thanks and all the best.
- The topic ‘Front-end filter for Pods Archive pages’ is closed to new replies.