Flexible Schema
Define your own data structure with up to 100KB JSON payload
Custom Rendering
Full control over how content appears in feeds and apps
Overview
Custom posts enable you to create specialized content types beyond standard text, image, video, and file posts. Build unique experiences for e-commerce, events, real estate, or any structured content that requires custom rendering.Key Features
Flexible Schema
Define your own data structure
Custom Rendering
Full control over appearance
Rich Metadata
Include complex structured data
Large Payload
Up to 100KB of custom data
1
Design Schema
Define your custom data structure and required fields
2
Create Post
Use the custom dataType and structured JSON data
3
Implement Rendering
Build custom UI components to display your content
The
dataType
parameter must have the custom
prefix (e.g., “custom.recipe”, “custom.product”).Parameters
Parameter | Type | Required | Description |
---|---|---|---|
dataType | String | Yes | Custom type identifier (must start with “custom”) |
data | Object | Yes | Free-form JSON object with your custom structure |
text | String | No | Optional text content |
targetType | Enum | Yes | Target destination (community or user feed) |
tags | Array | No | Searchable tags |
metadata | Object | No | Additional properties |
Data Structure Examples
E-commerce Product
E-commerce Product
Real Estate Listing
Real Estate Listing
Educational Course
Educational Course
When designing custom post types, consider how they’ll appear in feeds on different platforms and devices. Always include meaningful text content as a fallback for better accessibility and user experience.
Best Practices
Schema Design
Schema Design
- Keep JSON payload under 100KB for optimal performance
- Use consistent naming conventions (snake_case or camelCase)
- Include version fields for schema evolution
- Document your schema structure for team collaboration
- Validate data structure before posting
Data Structure
Data Structure
- Design for extensibility - plan for future additions
- Use nested objects for complex related data
- Include metadata like timestamps, versions, and IDs
- Consider data types carefully (strings vs numbers vs booleans)
- Implement graceful degradation for missing fields
User Experience
User Experience
- Provide fallback rendering for unsupported clients
- Include descriptive text content as backup
- Use appropriate tags for discoverability
- Design mobile-friendly data structures
- Consider accessibility in custom rendering
Performance
Performance
- Optimize JSON structure to minimize payload size
- Cache frequently accessed custom data
- Index searchable fields appropriately
- Consider lazy loading for complex custom content
- Monitor custom post performance and user engagement
Troubleshooting
Invalid DataType Format
Invalid DataType Format
Problem: Custom post creation fails with dataType validation errorSolutions:
- Ensure dataType starts with “custom.” prefix
- Use only alphanumeric characters and dots in dataType
- Avoid spaces or special characters in dataType names
- Follow the pattern: custom.yourtype (e.g., custom.product, custom.event)
JSON Payload Too Large
JSON Payload Too Large
Problem: Post creation fails due to data size exceeding 100KB limitSolutions:
- Reduce data structure complexity
- Move large content (images, files) to separate uploads
- Use references/IDs instead of embedding large objects
- Compress or optimize JSON structure
Schema Validation Errors
Schema Validation Errors
Problem: Custom data doesn’t match expected schema or contains invalid valuesSolutions:
- Implement client-side validation before posting
- Use consistent data types across all fields
- Handle null/undefined values gracefully
- Provide clear error messages for validation failures
Common Use Cases
E-commerce
Product listings with prices, specs, inventory, and ratings
Real Estate
Property listings with location, amenities, and pricing details
Events
Event details with dates, locations, speakers, and registration
Job Postings
Job listings with requirements, benefits, and application info
Recipes
Cooking instructions with ingredients and nutritional information
Reviews
Structured reviews with ratings, pros/cons, and recommendations
Industry-Specific Examples
Healthcare & Wellness
Healthcare & Wellness
Custom Types:
custom.appointment
, custom.health_tip
, custom.exercise_plan
Use Cases: Medical appointment booking, health tips with structured advice, workout plans with exercises and timingEducation & Learning
Education & Learning
Custom Types:
custom.course
, custom.assignment
, custom.quiz
Use Cases: Course catalogs with curriculum details, assignment submissions with rubrics, interactive quizzes with scoringTravel & Hospitality
Travel & Hospitality
Custom Types:
custom.hotel
, custom.itinerary
, custom.restaurant
Use Cases: Hotel bookings with amenities, travel itineraries with schedules, restaurant reviews with menusFinance & Investment
Finance & Investment
Custom Types:
custom.stock_analysis
, custom.portfolio
, custom.market_update
Use Cases: Stock analysis reports, portfolio performance tracking, market news with data visualizationSchema Design Tip: Include version fields in your data structure to support schema evolution as your custom post types mature and require updates.