Skip to main content

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:

BlockDescription
BailaYa: Class ScheduleUpcoming classes for the next 7 days
BailaYa: Class Schedule by TypeClasses filtered by a specific dance type
BailaYa: Instructor ListStudio instructors with photos and bios
BailaYa: Studio Profile CardStudio logo, name, description, address
BailaYa: User Profile CardSingle user/instructor profile
BailaYa: Private Lesson InstructorsInstructor pricing and availability with booking CTA
BailaYa: Package ListAvailable 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

SettingDescription
Studio IDYour BailaYa studio ID (used by all blocks/shortcodes unless overridden)
Cache TTLDefault cache lifetime in seconds (default: 300). Set to 0 to disable.
Book Base URLBase 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".