Zen Teachers
The Project with Aleksandra on Upwork
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/ngolwalkar01/zen-teachers/archive/refs/heads/main.zipAdds the public teacher custom post type and a block-theme-compatible single Teacher template for Zenctuary.
Setup
- Activate the plugin.
- Create Teacher posts under Teachers.
- Add the teacher portrait as the featured image.
- Add profile fields in Teacher Profile Details:
- Hero quote
- Quote attribution
- Instagram URL
- Edit WooCommerce products/classes and select the linked Teacher in the Teacher side metabox.
- Assign
activity_typeterms to the linked Woo products/classes. These terms automatically build the class tabs and collective card labels.
Existing _zen_instructor_name matching is kept as a fallback, but _zts_teacher_id is the preferred relationship.
The collective carousel shows other published Teacher posts; if there is only one Teacher, that section stays hidden.
Frontend
The plugin registers dynamic blocks used by the single Teacher template:
zen-teachers/teacher-herozen-teachers/teacher-classeszen-teachers/teacher-collective
The Teacher Classes Book now link uses get_permalink( $product_id ), so the existing Zenctuary product-link target filter can replace product URLs with the configured admin target page.
URL filters
Use these filters if the default pages need to be overridden:
add_filter( 'zen_teachers_schedule_url', function ( $url, $teacher_id ) {
return home_url( '/schedule/' );
}, 10, 2 );
add_filter( 'zen_teachers_collective_url', function ( $url, $teacher_id ) {
return home_url( '/collective/' );
}, 10, 2 );
add_filter( 'zen_teachers_instagram_icon_url', function () {
return 'https://zenctuarylive.mystagingwebsite.com/wp-content/uploads/2026/07/Vector.png';
} );