Overview
Courses are implemented as a custom post type (cursos) with extensive metadata support:
- Course images and introduction videos
- Multiple learning modalities
- Curriculum (syllabus) management
- Instructor associations
- Country-specific agreements with contact URLs
- Custom partnership agreements
- Multiple action URLs (enrollment, info, platform access)
Post Type Registration
Courses are registered ininc/cpts/courses.php:11-36:
Meta Fields
| Meta Key | Type | Description |
|---|---|---|
_curso_imagenes | array | Image attachment IDs |
_curso_modalidades | array | Learning modalities (online, presencial, etc.) |
_curso_intro_video | string | Introduction video URL |
_curso_testimonios | array | Testimonial video URLs |
_curso_temario | array | Curriculum topics |
_curso_url_inscribir | string | Enrollment URL |
_curso_url_info | string | More information URL |
_curso_url_plataforma | string | Learning platform URL |
_curso_url_oficial | string | Official course page URL |
_curso_paises | array | Associated country IDs |
_curso_paises_urls | array | Country-specific contact URLs |
_curso_instructores | array | Associated instructor IDs |
_curso_convenios | array | Custom partnership agreements |
Creating a Course
Basic Setup
- Navigate to Cursos > Añadir Nuevo
- Enter the course title
- Add a comprehensive description in the editor
- Set a featured image representing the course
Course Images
The images section uses WordPress media library with attachment IDs:- Click + Añadir Imagen to open media library
- Select or upload images
- Images display as thumbnails with remove buttons
Modalities
Define how the course is delivered:- Online
- Presencial
- Híbrido
- A tu propio ritmo
- En vivo
Video Content
Introduction Video
Single URL field for the main course introduction:Testimonial Videos
Multiple video URLs from students or graduates:Curriculum (Temario)
Add course topics that will be covered:- Introduction to Underwater Operations
- Safety Protocols and Equipment
- Welding Techniques at Depth
- Emergency Procedures
Instructor Associations
Link courses to instructor profiles:Country Agreements
Associate courses with countries and provide contact URLs:Custom Agreements
Add partnerships that aren’t country-specific:- Partnership with Industry Association
- Certification Body Agreement
- Equipment Manufacturer Sponsorship
Action URLs
Provide four key URLs for course actions:Saving Course Data
The save function handles all meta fields with proper sanitization:Retrieving Course Data
Display Course Images
Display Curriculum
Display Country Agreements
Best Practices
- Comprehensive Curriculum: List all major topics to set clear expectations
- Quality Videos: Use high-quality introduction and testimonial videos
- Clear Modalities: Specify exactly how students will learn
- Complete URLs: Provide all relevant action URLs for smooth user experience
- Country Specifics: Add country-specific contact URLs for localized support
- Instructor Credits: Always link to instructor profiles for credibility
- Regular Updates: Keep curriculum and modalities current
Workflow Example
- Create course: “Commercial Diving Operations”
- Add detailed description covering prerequisites and outcomes
- Upload 5 course images showing equipment and training
- Add YouTube intro video
- Add 2-3 testimonial videos from graduates
- List curriculum: 8-10 major topics
- Add modalities: “Presencial” and “Intensivo”
- Associate with 2 instructors
- Link to 4 countries with contact URLs
- Add enrollment and platform URLs
- Publish and verify display on courses page

