Setyenv · Docs
  • English
  • Spanish
  • Chinese
  • Japanese
  • Arabic
  • German
  • French
  • Hindi
  • Indonesian
  • Italian
  • Dutch
  • Portuguese
  • Russian
  • Turkish

Attachment field

Link to a WordPress media library item. Stored as the WP attachment id.

Configuration

  • Allowed file types: an array of MIME prefixes (image/, application/pdf, etc.). Default: all media-library types.
  • Max size MB: enforced at upload, also checks WP's own upload max size and uses the lower of the two.
  • Cardinality: one or many.

Form rendering

Opens the WP Media Library modal — same UX as adding an image to a post. If cardinality many, the field shows a grid of thumbnails with an add button.

List rendering

Thumbnail preview (clickable). For non-image attachments, a mime-type icon + filename.

EQL operators supported

is null, is not null only. Search by attachment metadata is not supported in EQL — use the WP Media Library search instead.