WordPress Plugin
The BailaYa WordPress plugin adds Gutenberg blocks and shortcodes to display live studio data on any WordPress site.
Installation
Install the plugin by uploading the plugin ZIP to Plugins → Add New → Upload Plugin, or by placing the bailaya/ folder in wp-content/plugins/.
Then go to Settings → BailaYa and enter your Studio ID.
Gutenberg blocks
The following blocks are available in the block editor:
| Block | Description |
|---|---|
| BailaYa: Class Schedule | Upcoming classes for the next 7 days |
| BailaYa: Class Schedule by Type | Classes filtered by a specific dance type |
| BailaYa: Instructor List | Studio instructors with photos and bios |
| BailaYa: Studio Profile Card | Studio logo, name, description, address |
| BailaYa: User Profile Card | Single user/instructor profile |
| BailaYa: Private Lesson Instructors | Instructor pricing and availability with booking CTA |
| BailaYa: Package List | Available class packages with buy CTA |
Each block has a sidebar panel in the editor with settings for locale, cache TTL, booking URL, and override studio ID.
Shortcodes
All blocks are also available as shortcodes.
Class schedule
[bailaya_class_schedule locale="en" currency="USD" cache_ttl="300"]
Class schedule by type
[bailaya_class_schedule_by_type type_name="Salsa" locale="es" currency="MXN"]
Instructor list
[bailaya_instructor_list locale="en"]
Studio profile card
[bailaya_studio_profile_card locale="en"]
User profile card
[bailaya_user_profile_card user_id="user_abc" locale="en"]
Private lesson instructors
[bailaya_private_lesson_instructors locale="en" book_base_url="https://www.bailaya.com/en/book/private-lesson/"]
Package list
[bailaya_package_list locale="en" buy_base_url="https://www.bailaya.com/packages/"]
Global settings
| Setting | Description |
|---|---|
| Studio ID | Your BailaYa studio ID (used by all blocks/shortcodes unless overridden) |
| Cache TTL | Default cache lifetime in seconds (default: 300). Set to 0 to disable. |
| Book Base URL | Base URL for class booking links |
Caching
Data from the BailaYa API is cached using WordPress transients. The default TTL is 5 minutes (300 seconds). You can override per block/shortcode with cache_ttl="600", or disable caching with cache_ttl="0".