Tagged: posts filter
August 3, 2020 at 10:13 am #17889
Happy Monday! I’m almost done with the site. There’s just the matter of styling that category page in GP, and this matter of a posts/content filter.
Is it possible to add a filter to a posts list in WPSP Pro using PHP? I did not see this function in WPSP’s options.
I wanted to replicate the filter on https://arenasfoto.com/gallery/ on another site that’s in the works. That page is built with GP Pro + Elementor Pro. That filter’s done with Elementor. The new site’s with GP Pro, no page builder, and WPSP Pro, and GB.
Filter Selection on said page: 1. All (parent category) 2. Engagements & Couples (child category) and 3. Weddings (child category). Post are assigned to the two child categories and appear on the parent category.
All = All posts in both child categories (Engagements …, & Weddings)
Engagements … = Just posts of engagements & couples
Weddings = Just posts of weddings
I’ve found a number of plugins that have this filter option, but you have to use their posts list templates. I really wanted to keep WPSP as I have the gallery exactly how I want it.
I also just used text in the category editor and embedded a URL to the other pages, but it’s clumsy and takes visitors to another page and complicates the UX.
I’m hoping there’s a way to add this functionality with/to WPSP with code.
Thank you Tom, and have a good day.
AndrésAugust 3, 2020 at 1:00 pm #17907
WP Show Posts doesn’t have this kind of functionality at the moment, unfortunately. However, it’s a highly requested feature, and definitely one we intend on building. It will likely be something we introduce once we release our WP Show Posts block.August 3, 2020 at 1:51 pm #17916
Thanks for the update. I’ll stick with WPSP and wait for that feature. In the interim, I just used plain tex in the category editor on each category page and embedded a URL.
Would you happen to know if there is a way to not have the text with the URL embedded not be blue?
When that feature is available, would it be something that I can just toggle in WPSP for an already-created posts list whose short code is in a custom php template? It’d be nice to not have to rework those custom php templates.
Have a good one, Tom.
AndrésAugust 4, 2020 at 1:22 pm #17933
You can likely use CSS to change the color – feel free to link me to the page.
Yes, it would be a toggle. However, we’ll be going through a full re-write before adding any features like this.August 5, 2020 at 10:03 am #17958
Thanks for the reply.
Silly me, I just changed the color using the tools in the editor. Duh!!
I think I found a solution for to filter the content on posts lists generated by WPSP. It’s a plugin called Smart Content Filter by Pixify.
Smart Content Filter: https://pixify.net/products/smart-content-filter/
I’m not sure when you plan on having reworking WPSP to include the filter option, so this might be a good solution for users who want this function and who want to use WPSP.
Hope this helps.
Have a good day, Tom.August 5, 2020 at 1:04 pm #17969
Awesome! Glad you were able to find something that should work with WPSP, appreciate you sharing the link 🙂
- You must be logged in to reply to this topic.