• Resolved doctorproctor

    (@doctorproctor)


    Hi, a feature I thought your Portfolio block has is the ability to dynamically filter posts by taxonomy, but this appears to be only something that can be manually done per block. Is this correct? I want the user to be able to select the Portfolio items that are displayed by a given tag.

    I see in code that taxonomy (tag in my case) is specified via <li> CSS style:

    class="wp-block-post post-53 portfolio type-portfolio status-publish has-post-thumbnail hentry portfolio_tag-guitar"

    Is there a way to append a tag into a query string on a menu URL? This could be a way to accomplish what I need, thanks.

    Jim P.

    • This topic was modified 7 months, 2 weeks ago by doctorproctor. Reason: Added desired goal
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter doctorproctor

    (@doctorproctor)

    Hi there, did some research and found other portfolio plugins that do this, typically via isotope.js. Is this a feature others are requesting re. your generally excellent portfolio block?

    Jim P.

    Plugin Support Yann

    (@collet)

    Hi Jim,

    Thank you for the feedback. You are correct, the Portfolio block allows you to select which projects to display based on a taxonomy when you build the page, but it doesn’t currently include a dynamic, front-end filter for your website visitors.

    Adding a live-filtering option is an excellent feature request, and we’ll consider it for a future update. Currently, our main focus is on finalizing our new block theme.

    To give you some technical context, many older solutions for this relied on scripts like Isotope, which is now quite old (its last update was several years ago). The modern, more integrated approach is to use the new WordPress Interactivity API, and that’s how we would build this feature today.

    In the meantime, you could look into the Query Filter plugin by the agency Human Made: https://github.com/humanmade/query-filter

    It provides a “Taxonomy Filter” block that, when placed inside a standard WordPress Query Loop block, allows your visitors to filter posts/projects without a page reload.

    I hope that helps,
    Yann

    Would you mind leaving us a quick review on our plugin page? This allows us to continue providing great features and helps other users to find us 😃

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘dynamically filter portfolio block items?’ is closed to new replies.