Support

Account

Home Forums General Issues Build simple filters for a collection of items

Unread

Build simple filters for a collection of items

  • I have a slideshow post type that I am setting up. I am using the Repeater field to build each slide. Inside each slide I would like the ability to set values to various filter groups for the slideshow as a whole.

    For example, a slideshow might have the following filter groups:

    Brand, Type, Class

    I would like to be able to set Slide A with the following:

    Brand: Brand X
    Type: Foo
    Type: Bar
    Class: Test

    and Slide B with the following:

    Brand: Brand B
    Type: Foo
    Class: Lorem
    Class: Ipsum

    Note that the filter group keys do not change for the slideshow as a whole, so it would be nice be able to define the keys on the post-level, and then define individual values on the slide-level. So on the slide-level I’m thinking there could be a drop-down that is pre-populated with the values on the post-level, and then there would be some kind of UI similar to the Taxonomy field where the user can add “tags” to the currently selected filter. This would all ride on the fact that I could pre-populate that dropdown with the content from another drop-down — is that possible in ACF?

    Is anyone doing anything like this?

Viewing 1 post (of 1 total)

The topic ‘Build simple filters for a collection of items’ is closed to new replies.