Home › Forums › Pro Support › Two questions: Search Results & Displaying Date Ranges
Tagged: date range, search
- This topic has 6 replies, 2 voices, and was last updated 2 years, 4 months ago by Tom.
October 26, 2020 at 10:35 am #21643
I’ve just started using WP Show posts on a new web build for an editorial site. I’m currently using with the new alpha version. It’s working out really well!
A have a couple of questions I hoped you might be able to help with.
Firstly, do you have any examples of people using Show Posts as a search results page? Rather than implement a separate plugin for search, I’d love to display categories/post results with the same layout I’m using with Show Posts. I noticed someone was using it combined with FacetsWP previously but had some issues with the masonry. Any recommendation on methods for this would be appreciated. Alternatively I may just use Ajax Search Pro for live results only.
Secondly, is it possible to implement a date range? I’ve tried a couple of quick meta key and meta value combinations without much effect. Ultimately I’d like to display a series of posts on a page using the masonry, and then implement a navigation to tab between each year of the same category.
Thanks for your time and help! Much appreciated.
Ty.October 27, 2020 at 2:14 pm #21759
1. This is difficult, as WPSP wasn’t originally developed to replace core archives/loops. It also depends on your theme and how archives are set up. I’m not sure if it works, but I tried writing something for GeneratePress users here: https://wpshowposts.com/support/topic/better-search-results-with-wp-show-posts/#post-21649
2. This also sounds pretty complex – how would the tab be added/updated between sets of posts?October 27, 2020 at 2:42 pm #21763
Thanks for the reply.
I’m using the Semplice theme which originally linked to WP Show Posts here. https://help.semplice.com/hc/en-us/articles/360026686391-Creating-grid-effect-for-blog-posts-how-to-display-blog-posts-on-a-page-.
I’m setting up pages within the Semplice theme/WYSIWYG and then embedding the WPSP shortcodes. My current plan is to create a different page for each year of the category (for a separate WPSP shortcode for each), then add a link navigation to the top of each page to click between them.
Ideally it would be great to have a category or search filter system that talks directly to to WPSP on each click instead of creating individual pages (reload the masonry/ajax).
I understand Semplice isn’t ideal for out-of-box search results or posts. Hence why WPSP is acting as my default archive display. Not sure if your GeneratePress search results suggestion would work here?
Ty.October 28, 2020 at 8:13 am #21812
It might be helpful to see an example of something I’m trying to emulate. While not a date range exactly, this type of filtering system would be fantastic. I could then reorder and sort via category or date/name etc. If there’s a way to add additional shortcode to filter and talk directly to a WPSP list that would be super helpful!
Many thanks again.
Ty.October 28, 2020 at 1:48 pm #21828
I’m not familiar with that theme, unfortunately. You’ll need to ask their support if it’s possible to customize the search results archive with your own query.
As for the filters, WPSP isn’t set up for something like this at the moment – it would require some custom development.
Sorry I can’t be more helpful!October 28, 2020 at 3:46 pm #21841
No worries! Thanks for looping back Tom. I’ve keep an eye on the updates! Hopefully some of that functionality becomes available down the track.
Ty.October 29, 2020 at 2:08 pm #21919
No problem! We’ll be looking at something like this in the block version of the plugin 🙂
- You must be logged in to reply to this topic.