Support

Account

Home Forums ACF PRO Images Conditional on Term

Unread

Images Conditional on Term

  • I have a custom post type Vendors and custom taxonomy, Vendor Categories. A Vendor can be in multiple Vendor Categories and will have a different image for each Vendor Category.

    Each Vendor Category has its featured image, but each Vendor has an image for each of the Vendor Categories it is assigned.

    Acme Co is in Widgets, Explosives, Desert Survival. For each category, Acme has an image:
    acme_co-widgets.jpg
    acme_co-explosives.jpg
    acme_co-desert_survival.jpg

    I can create a Field Group conditional on selected terms so that an image selector is displayed for each selected Vendor Category. However, I would need to create a Field Group for any future Vendor Categories… and this just seems like a clunky solution.

    Is there a better way to (dynamically?) create an image field for each selected category? Can I use a single Field Group for this?

    Thank you

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.