Just a basic chair in a field of sunflowers. ultrarealistic fotoshoot by newton

Use Case: display combined data in a Yoga Center

We have built a real world example with fictional (AI generated) data, like teachers, classes and classrooms. In fitness and yoga there are often teachers who give more than one class. And customers are happy when they can see on which week days and times their favorite class (yoga style) is given.

We created individual templates for the Classes and Teachers post types to enhance user experience and organization. The Classroom post type is currently set to be displayed as nested within the classes template. However, it represents a fantastic opportunity for you to develop a custom template dedicated to this post type. In this new template, you could effectively nest the classes that typically take place in this particular room, organized by each weekday, allowing for a more structured presentation of schedules and availability.

A video walkthrough is coming soon!

We have regularly have open office sessions for content creators, if you need some guidance don’t hesitate to contact us.

Custom Post Types

It has three custom post types:

  • Teachers

  • Classes

  • Classroom

Custom Fields

We added two custom fields to the Classes CPT.

  • The first is called „Time for Sorting“ It’s for sorting classes by scheduled time.

  • The second one is called „Days for sorting

WordPress can’t sort terms from a Global Taxonomy by default.

Global Taxonomies

  • Instructor

  • Yoga Style

  • Level

  • Time Slot

  • Day

  • Room

What global taxonomies are good for:

  • Reusability: One term like “Intermediate” (under Level) can be applied across posts, avoiding duplicate display.

  • Filtering: Users can select terms like “Monday” or “Beginner” to filter query loops.

  • Search: You can filter content by global taxonomy values in forms or filters.

How CPTs and Global Taxonomies are linked

  • CPT Teacher is linked to the global taxonomies called Yoga Styles and Instructor

  • CPT Class is linked to all global taxonomies for extensive filtering in display, as you can see in the sample pages.

  • CPT Classroom is linked to the global taxonomies called room and Yoga Style

Why this is a solid approach with dynamic data

TL;DR:

  • Best practice: Use both taxonomies (for filtering) and custom fields (for sorting)
  • WordPress limitation: You can’t sort posts by taxonomy name or order
  • Greyd.Suite: It doesn’t bypass that limitation, it works with it. Which makes for superfast websites. In geek speak: We use tax_query instead of meta_query.

About display conditions and dynamic data

FeatureGreyd.SuiteACF
Show/hide frontend blocks based on conditions✅ Yes⚠️ Only via custom PHP or theme templates
Conditional display of query results✅ Yes⚠️ Possible, but requires meta_query or code
Form logic (e.g. Greyd Forms)✅ Supports conditions for fields, sections, etc.❌ Not part of ACF