support.cubewp.com support.cubewp.com
  • Helpdesk
  • Support Forum
Get CubeWP
support.cubewp.com support.cubewp.com
Get CubeWP
support.cubewp.com
  • Helpdesk
  • Support Forum

Docy

Custom Fields Types

  • Folder icon closed Folder open iconText
  • Folder icon closed Folder open iconNumber
  • Folder icon closed Folder open iconEmail
  • Folder icon closed Folder open iconURL
  • Folder icon closed Folder open iconPassword
  • Folder icon closed Folder open iconText Area
  • Folder icon closed Folder open iconWysiwyg Editor
  • Folder icon closed Folder open iconoEmbed
  • Folder icon closed Folder open iconFile
  • Folder icon closed Folder open iconImage
  • Folder icon closed Folder open iconGallery
  • Folder icon closed Folder open iconSwitch
  • Folder icon closed Folder open iconColor
  • Folder icon closed Folder open iconRange
  • Folder icon closed Folder open iconDropdown
  • Folder icon closed Folder open iconCheckbox
  • Folder icon closed Folder open iconRadio Button
  • Folder icon closed Folder open iconGoogle Address
  • Folder icon closed Folder open iconDate Picker
  • Folder icon closed Folder open iconDate Time Picker
  • Folder icon closed Folder open iconTime Picker
  • Folder icon closed Folder open iconPost
  • Folder icon closed Folder open iconTaxonomy
  • Folder icon closed Folder open iconUser
  • Folder icon closed Folder open iconRepeating Fields
  • Folder icon closed Folder open iconReview Stars (Pro)
  • Folder icon closed Folder open iconTimings (Pro)

File

Estimated reading: 1 minute 828 views

The File field enables the upload and selection of a file through the standard WP media popup.

Field Settings

Field Label: File

Field Name: You can edit the field name by unlocking the field

Description: You have the option to provide a field description to inform users about its purpose

File Types (MIME): By default, all file types are permitted. If you wish to specify certain types, you can add them in this format, for example: image/webp, image/png, image/jpeg.

Upload Size: You can set the maximum file size for this field, e.g., 5

Validation: You can make the field required by enabling this option

Save Format: Select the desired data format: File File URL (string), or File ID (integer).

ID: You have the option to replace the ID with the default one

Class: In case you’d like to take control of the design

Container Class: In case you’d like to take control of the design

Metabox Field Size: 1/1 The field will take the full width within the admin panel’s Meta Box

Show In REST API: If Yes then field data will be accessible via the WordPress REST API

Preview

file
Share this Doc

File

Or copy link

Clipboard Icon
CONTENTS
Leaf Illustration

© 2023 All Rights Reserved by CubeWP