This repository contains the WordPress installation for NOMAR.org (National Organization of Medical Assistants Resources), featuring a custom events management system.
The primary component of this repository is the NOMAR Events Plugin, a custom WordPress plugin designed to synchronize and display events from the Tangilla API for NOMAR's educational and professional development offerings.
- Tangilla API Integration: Automatically syncs events from Tangilla's event management system
- Custom Post Type: Dedicated 'events' post type with comprehensive metadata
- Advanced Custom Fields: 40+ custom fields for detailed event information
- REST API Support: Full REST API integration for headless applications
- Automated Sync: Scheduled synchronization every 5 minutes via WordPress cron
- Event Categories: Support for event categorization and filtering
- Shortcodes: Easy event display with
[events_calendar]and[events_filters]shortcodes - Cornerstone Integration: Custom looper providers for Cornerstone page builder
The plugin handles comprehensive event data including:
- Event Details: Title, description, date, time, location
- Registration Info: Pricing, capacity, availability, registration links
- CE Credits: Continuing education information and provider details
- Instructor Info: Multiple instructor support with bios and images
- Categorization: Event types and custom taxonomies
- Clone this repository to your web server
- Configure WordPress following standard installation procedures
- The NOMAR Events plugin is located in
wp-content/plugins/nomar-events/ - Activate the plugin through the WordPress admin panel
- Configure ACF (Advanced Custom Fields) if not already installed
- WordPress 5.0+
- Advanced Custom Fields (ACF) Pro
- Cornerstone page builder (optional, for looper functionality)
The plugin connects to Tangilla's API endpoint:
https://api.tangilla.com/event/v1/feed/4420/live?include_current_month_events=true
Events can be manually synchronized:
- Navigate to Events in WordPress admin
- Click "Sync Events with Tangilla" button
- Or use the REST API endpoint:
POST /wp-json/nomar/v1/sync-events
Display a calendar of events:
[events_calendar]Display event filtering options:
[events_filters event_type="event"]The plugin registers 40+ custom fields for events, including:
event_id- Unique identifier from Tangillaevent_date- Event datecapacity- Maximum attendeesregistered- Current registrationsavailability- Calculated available spotsprice- Event costmember_price- NOMAR member pricingce_credits- Continuing education creditslocation- Event locationinstructor_name- Primary instructor- And many more...
All custom fields are exposed in the WordPress REST API for headless applications:
GET /wp-json/wp/v2/events
Additional endpoints:
GET /wp-json/nomar/v1/test- Test endpointPOST /wp-json/nomar/v1/sync-events- Manual sync trigger
wp-content/plugins/nomar-events/
├── nomar-events.php # Main plugin file
├── includes/ # Plugin classes
├── templates/ # Template files
│ ├── events-calendar.php
│ └── events-filters.php
└── public/js/ # JavaScript assets
└── events-filters.js
sync_events_with_api()- Main synchronization functioncreate_post_type_events()- Registers the events post typeupdate_all_custom_fields()- Updates event metadatacs_looper_custom_my_data- Cornerstone looper provider
- Cron Schedule: Events sync every 5 minutes
- Availability Calculation: Automatically calculates available spots
- Date Formatting: Creates human-readable date formats
- Category Management: Maintains category relationships
This is a custom plugin for NOMAR.org. For questions or support:
- Author: Nina Horne
- Website: ninahorne.io
- Plugin URI: nomar.org
This plugin is licensed under GPL-2.0+. See license.txt for full license text.
This installation uses WordPress core files. For WordPress-specific documentation, see the original readme.html file included with the WordPress installation.