ACF Requirements
The VertiSub theme requires the Advanced Custom Fields plugin:- Plugin: Advanced Custom Fields (ACF Pro recommended)
- Minimum Version: 5.0+
- Theme Requirement: Listed in
style.cssheader
ACF JSON Sync
The theme uses ACF JSON for version control and field group synchronization.ACF JSON Directory
Field groups are saved to:Available Field Groups
The theme includes these ACF field group JSON files:Syncing Field Groups
To sync field groups:- Navigate to Custom Fields > Sync
- Select field groups to sync
- Click “Sync” to import from JSON
Custom Post Types
The theme registers several custom post types with ACF field groups.Services (Servicios)
Defined in/inc/cpts/services.php:
Other Custom Post Types
The theme includes:- Certifications -
/inc/cpts/certification.php - Clients -
/inc/cpts/clients.php - Countries (Paises) -
/inc/cpts/countries.php - Courses -
/inc/cpts/courses.php - Documents -
/inc/cpts/documents.php - Services (Servicios) -
/inc/cpts/services.php
Custom Meta Boxes
Some custom post types use traditional WordPress meta boxes alongside ACF.Multimedia Meta Box
The Services post type includes a custom multimedia meta box:Multimedia Fields
The meta box handles multiple image and video uploads:Saving Custom Meta
Retrieving ACF Data
Get Field Value
Display Field Value
Image Fields
Repeater Fields
Flexible Content
Country Post Type Example
The Countries (Paises) custom post type uses ACF for contact information:Storing Country Data
Passing to JavaScript
From/inc/enqueue.php:
Relationship Fields
Services can be related to countries using a custom meta box:Saving Relationships
Querying Related Posts
Admin Enqueue for Media Uploader
For custom meta boxes using the media uploader:Best Practices
- Use ACF JSON - Always sync field groups via JSON
- Sanitize output - Use
esc_html(),esc_url(), etc. - Check for field existence - Use conditionals before displaying
- Use field keys - More reliable than field names
- Document custom fields - Add descriptions in ACF field settings
- Use ACF location rules - Show fields only where needed
- Test thoroughly - Verify data saves correctly
Common Patterns
Hero Section with ACF
Service Loop with Meta
Next Steps
- Theme Setup - Configure theme features
- Styling & Design - Style your custom fields
- Menu Customization - Configure navigation

