Black Friday sale! Get 25% off WPSP Pro! Discount automatically applied at checkout.

[Resolved] Filter Posts by Category or Tag

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Filter Posts by Category or Tag

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #17889
    Andres
    Participant

    Hello Tom,

    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.

    Regards,

    Andrés

    #17907
    Tom
    Keymaster

    Hi there,

    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.

    #17916
    Andres
    Participant

    Hi Tom,

    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és

    #17933
    Tom
    Keymaster

    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.

    #17958
    Andres
    Participant

    Hi Tom,

    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.

    According to them, “Smart Content Filter (SCF) by default doesn’t allow to filter dynamic content like the post loop. But, it would still be possible to extend that functionality and add filtering to the dynamic loop using a custom JavaScript snippet that maps the post loop identifiers (HTML IDs / classes) with the filter tag names.

    We have done that before for many of our users who wanted SCF to work with dynamic content, and I can certainly assist you with the JavaScript code snippet to extend it. You’re only expected to know the basic element identifiers to map them with the filter tags.”

    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.

    #17969
    Tom
    Keymaster

    Awesome! Glad you were able to find something that should work with WPSP, appreciate you sharing the link 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.