Skip to content
ninahornePublic

About

WordPress plugin for NOMAR Real Estate classes and events

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

NOMAR.org WordPress Site

This repository contains the WordPress installation for NOMAR.org (National Organization of Medical Assistants Resources), featuring a custom events management system.

Overview

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.

Key Features

NOMAR Events Plugin

  • 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

Event Data Management

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

Installation

  1. Clone this repository to your web server
  2. Configure WordPress following standard installation procedures
  3. The NOMAR Events plugin is located in wp-content/plugins/nomar-events/
  4. Activate the plugin through the WordPress admin panel
  5. Configure ACF (Advanced Custom Fields) if not already installed

Plugin Configuration

Required Dependencies

  • WordPress 5.0+
  • Advanced Custom Fields (ACF) Pro
  • Cornerstone page builder (optional, for looper functionality)

API Configuration

The plugin connects to Tangilla's API endpoint:

https://api.tangilla.com/event/v1/feed/4420/live?include_current_month_events=true

Manual Sync

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

Shortcodes

Events Calendar

Display a calendar of events:

[events_calendar]

Events Filters

Display event filtering options:

[events_filters event_type="event"]

Custom Fields

The plugin registers 40+ custom fields for events, including:

  • event_id - Unique identifier from Tangilla
  • event_date - Event date
  • capacity - Maximum attendees
  • registered - Current registrations
  • availability - Calculated available spots
  • price - Event cost
  • member_price - NOMAR member pricing
  • ce_credits - Continuing education credits
  • location - Event location
  • instructor_name - Primary instructor
  • And many more...

REST API

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 endpoint
  • POST /wp-json/nomar/v1/sync-events - Manual sync trigger

Development

File Structure

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

Key Functions

  • sync_events_with_api() - Main synchronization function
  • create_post_type_events() - Registers the events post type
  • update_all_custom_fields() - Updates event metadata
  • cs_looper_custom_my_data - Cornerstone looper provider

Automated Tasks

  • 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

Contributing

This is a custom plugin for NOMAR.org. For questions or support:

License

This plugin is licensed under GPL-2.0+. See license.txt for full license text.

WordPress Information

This installation uses WordPress core files. For WordPress-specific documentation, see the original readme.html file included with the WordPress installation.

About

WordPress plugin for NOMAR Real Estate classes and events

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages