Skip to content

Adding Custom Fields to Posts

Pro. This feature requires WB Member Blog Pro. The free plugin must be installed and active first. See the Pro index for every Pro module.

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

Available Field Types (15)

TypeDescriptionUse CaseTextSingle-line inputBook title, product nameTextareaMulti-line inputSummary, descriptionNumberNumeric input with validationPrice, rating, quantityEmailEmail with validationContact emailURLURL with validationExternal link, websiteDateDate pickerEvent date, deadlineDate & TimeDateTime pickerEvent with specific timeSelectDropdown menuCategory, statusMulti-SelectMultiple choice dropdownTags, topics, featuresCheckboxSingle yes/no toggleFeatured flag, terms agreementRadioSingle choice from optionsPriority level, ratingFileFile uploadPDF, document, zipImageSingle image uploadProduct photo, avatarGalleryMultiple imagesPhoto album, portfolioColorColor pickerBrand color, theme color

Creating a Custom Field

Go to Member Blog → Custom Fields Click Add New Field Configure the field settings Click Save Field

Field Settings

SettingDescriptionLabelDisplay name shown to membersField KeyUnique identifier (auto-generated or custom)TypeSelect from 15 field typesRequiredMake field mandatoryPlaceholderHint text inside the fieldDefault ValuePre-filled valueHelp TextInstructions shown below field

Adding Options for Select/Radio/Checkbox

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

Click Add Option Enter option label and value Drag to reorder options 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

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

Available Conditions

OperatorUse CaseEqualsExact matchNot EqualsExclude specific valueContainsPartial text matchIs EmptyField has no valueIs Not EmptyField has any value

File Upload Settings

For File, Image, and Gallery fields:

SettingDescriptionAllowed TypesRestrict file extensions (jpg, pdf, etc.)Max File SizeLimit in MBMax FilesFor Gallery - maximum images allowed

Field Visibility Options

Control where fields appear:

OptionDescriptionFrontend OnlyMembers see it, admins don’t in WP adminAdmin OnlyOnly visible in WordPress adminBothVisible 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

FieldTypeRequiredEvent DateDate & TimeYesEvent LocationTextYesTicket PriceNumberNoEvent WebsiteURLNoEvent PosterImageNo

Example: Product Review Fields

FieldTypeRequiredRatingRadio (1-5 stars)YesProsTextareaYesConsTextareaYesPurchase LinkURLNoProduct 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.