Field contexts - limit fields shown in the editor

When you have custom fields defined for a scope (e.g. the product scope), those fields don't necessarily all apply to every product in your store. 

Products of a certain type may need certain fields while it's irrelevant to others

To this end, ACF offers an "Applies to" setting in the field definition dialog:

Both sections and individual fields can have applies-to settings. If a section has an applies-to setting, this setting will be inherited by all the section's fields. Otherwise, each individual field can have an applies-to setting on its own.

The selection values in the dropdown depend on the scope, you are defining fields for:

Scope Can be filtered by
Product product types, product templates
Variant product types, product templates
Collection Individual collections, collection templates
Page Individual pages, page templates
Blog Individual blogs, blog templates
Article Individual blogs, individual articles, blog & article templates
Order n/a
Customer n/a
Shop n/a

You can select multiple values to filter the section or fields by. If an object fits at least one of the "Applies to" conditions, it will be shown in the editor.

A variation on this theme is that you can edit fields for selected sections only. Using the dropdown option of the "Edit values" button, you can select which section to edit:

An "Edit by section" selection will still respect any "Applies to" conditions.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us