Adding Custom Fields to Posts

Add extra fields to the post creation form for structured data collection. Custom fields let you collect event dates, prices, ratings, file attachments, and much more from your members.

What You’ll Learn

  • All 15 available field types
  • How to create and configure fields
  • How to set up conditional logic
  • How to display fields on the frontend
Custom Fields admin interface

Available Field Types (15)

TypeDescriptionUse Case
TextSingle-line inputBook title, product name
TextareaMulti-line inputSummary, description
NumberNumeric input with validationPrice, rating, quantity
EmailEmail with validationContact email
URLURL with validationExternal link, website
DateDate pickerEvent date, deadline
Date & TimeDateTime pickerEvent with specific time
SelectDropdown menuCategory, status
Multi-SelectMultiple choice dropdownTags, topics, features
CheckboxSingle yes/no toggleFeatured flag, terms agreement
RadioSingle choice from optionsPriority level, rating
FileFile uploadPDF, document, zip
ImageSingle image uploadProduct photo, avatar
GalleryMultiple imagesPhoto album, portfolio
ColorColor pickerBrand color, theme color

Creating a Custom Field

  1. Go to Member Blog → Custom Fields
  2. Click Add New Field
  3. Configure the field settings
  4. Click Save Field

Field Settings

SettingDescription
LabelDisplay name shown to members
Field KeyUnique identifier (auto-generated or custom)
TypeSelect from 15 field types
RequiredMake field mandatory
PlaceholderHint text inside the field
Default ValuePre-filled value
Help TextInstructions shown below field

Adding Options for Select/Radio/Checkbox

For Select, Multi-Select, Radio, and Checkbox fields, you need to add options:

  1. Click Add Option
  2. Enter option label and value
  3. Drag to reorder options
  4. Set a default selection (optional)

Example – Priority Field:

  • Low (value: low)
  • Medium (value: medium) [default]
  • High (value: high)
  • Urgent (value: urgent)

Conditional Logic

Show or hide fields based on other field values. This keeps forms clean and relevant.

Example: Show Location Only for Events

  1. Create a Select field called “Post Type” with options: Article, Event, Review
  2. Create a Text field called “Event Location”
  3. In “Event Location” settings, enable Conditional Logic
  4. Set: Show this field when “Post Type” equals “Event”

Available Conditions

OperatorUse Case
EqualsExact match
Not EqualsExclude specific value
ContainsPartial text match
Is EmptyField has no value
Is Not EmptyField has any value

File Upload Settings

For File, Image, and Gallery fields:

SettingDescription
Allowed TypesRestrict file extensions (jpg, pdf, etc.)
Max File SizeLimit in MB
Max FilesFor Gallery – maximum images allowed

Field Visibility Options

Control where fields appear:

OptionDescription
Frontend OnlyMembers see it, admins don’t in WP admin
Admin OnlyOnly visible in WordPress admin
BothVisible everywhere

Displaying Fields on Your Site

Use the shortcode in your theme’s post template:

[bp-member-blog-custom-field id="event_date"]

With formatting:

[bp-member-blog-custom-field id="price" before="$" after=" USD"]

Example: Event Listing Fields

FieldTypeRequired
Event DateDate & TimeYes
Event LocationTextYes
Ticket PriceNumberNo
Event WebsiteURLNo
Event PosterImageNo

Example: Product Review Fields

FieldTypeRequired
RatingRadio (1-5 stars)Yes
ProsTextareaYes
ConsTextareaYes
Purchase LinkURLNo
Product ImagesGalleryNo

Managing Fields

Reorder fields: Drag and drop fields on the Custom Fields page to change their order in the post form.

Delete fields: Click the Delete link next to any field. Note: Deleting a field does not remove data from existing posts – the values remain in the database.

Last updated: January 18, 2026