{"id":334,"date":"2025-05-25T18:20:42","date_gmt":"2025-05-25T18:20:42","guid":{"rendered":"https:\/\/prefab.greyd.io\/dynamic-yoga\/?page_id=334"},"modified":"2025-08-07T10:52:39","modified_gmt":"2025-08-07T10:52:39","slug":"yoga-in-style","status":"publish","type":"page","link":"https:\/\/prefab.greyd.io\/dynamic-yoga\/","title":{"rendered":"Yoga in Style"},"content":{"rendered":"\n<div class=\"wp-block-group alignfull is-style-section-neutral has-lightest-color has-tertiary-background-color has-text-color has-background has-link-color wp-elements-80f57c17458f3b51d44e1d4fcc420089 has-global-padding is-layout-constrained wp-block-group-is-layout-constrained is-style-section-neutral--1\" style=\"padding-top:var(--wp--preset--spacing--x-large);padding-bottom:var(--wp--preset--spacing--x-large)\">\n<h1 class=\"wp-block-heading\">This is your prefab content installation<\/h1>\n\n\n\n<p>This front page is without design because we know you want to add your own. We have provided dynamic content and featured images for you in this installation. We also created example pages with filtered display, so you can do what you do best: apply own design, add regular pages, and then use this to create tutorials, video&#8217;s, etc.<\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Use Case: display combined data in a Yoga Center<\/h2>\n\n\n\n<p>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. <\/p>\n\n\n\n<p>We created individual templates for the Classes and Teachers post type. The Classroom post type is currently there to be displayed as nested in the classes template. However, it&#8217;s a great opportunity for you to create a custom template for that where you can nest which classes usually take place in this particular room, per week day for example.<\/p>\n\n\n\n<p>We have regularly have open office sessions for content creators, if you need some guidance don&#8217;t hesitate to <a href=\"https:\/\/greyd.io\/contact\/\">contact us<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-7133c7b8 wp-block-columns-is-layout-flex\" style=\"padding-top:var(--wp--preset--spacing--medium);padding-bottom:var(--wp--preset--spacing--medium)\">\n<div class=\"wp-block-column col-12 col-sm-auto is-layout-flow wp-container-core-column-is-layout-360d14ef wp-block-column-is-layout-flow\">\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-container-core-group-is-layout-4889bd1e wp-block-group-is-layout-constrained\" style=\"border-left-color:var(--wp--preset--color--tertiary);border-left-width:6px;padding-left:var(--wp--preset--spacing--small)\">\n<h3 class=\"wp-block-heading\">Custom Post Types<\/h3>\n\n\n\n<p>It has three custom post types:<\/p>\n\n\n\n<ul class=\"wp-block-greyd-list\" id=\"list_69d273fb11117\">\n<li><span class=\"list_icon icon_document_alt\" aria-hidden=\"true\"><\/span><span class=\"list_content\"><p>Teachers<\/p><\/span><\/li>\n\n\n\n<li><span class=\"list_icon icon_document_alt\" aria-hidden=\"true\"><\/span><span class=\"list_content\"><p>Classes<\/p><\/span><\/li>\n\n\n\n<li><span class=\"list_icon icon_document_alt\" aria-hidden=\"true\"><\/span><span class=\"list_content\"><p>Classroom<\/p><\/span><\/li>\n<\/ul>\n<\/div>\n\n\n\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-container-core-group-is-layout-4889bd1e wp-block-group-is-layout-constrained\" style=\"border-left-color:var(--wp--preset--color--tertiary);border-left-width:6px;padding-left:var(--wp--preset--spacing--small)\">\n<h3 class=\"wp-block-heading\">Custom Fields<\/h3>\n\n\n\n<p>We added two custom fields to the Classes CPT.<\/p>\n\n\n\n<ul class=\"wp-block-greyd-list\" id=\"list_69d273fb113d2\">\n<li><span class=\"list_icon icon_check_alt2\" aria-hidden=\"true\"><\/span><span class=\"list_content\"><p>The first is called &#8220;<strong>Time for Sorting<\/strong>&#8221; It&#8217;s for sorting classes by scheduled time.<\/p><\/span><\/li>\n\n\n\n<li><span class=\"list_icon icon_check_alt2\" aria-hidden=\"true\"><\/span><span class=\"list_content\"><p>The second one is called &#8220;<strong>Days for sorting<\/strong>&#8220;<\/p><\/span><\/li>\n<\/ul>\n\n\n\n<p>WordPress can&#8217;t sort terms from a Global Taxonomy by default.<\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column col-12 col-sm-auto is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-container-core-group-is-layout-4889bd1e wp-block-group-is-layout-constrained\" style=\"border-left-color:var(--wp--preset--color--tertiary);border-left-width:6px;padding-left:var(--wp--preset--spacing--small)\">\n<h3 class=\"wp-block-heading\">Global Taxonomies<\/h3>\n\n\n\n<ul class=\"wp-block-greyd-list\" id=\"list_69d273fb115e3\">\n<li><span class=\"list_icon icon_flowchart\" aria-hidden=\"true\"><\/span><span class=\"list_content\"><p>Instructor<\/p><\/span><\/li>\n\n\n\n<li><span class=\"list_icon icon_flowchart\" aria-hidden=\"true\"><\/span><span class=\"list_content\"><p>Yoga Style<\/p><\/span><\/li>\n\n\n\n<li><span class=\"list_icon icon_flowchart\" aria-hidden=\"true\"><\/span><span class=\"list_content\"><p>Level<\/p><\/span><\/li>\n\n\n\n<li><span class=\"list_icon icon_flowchart\" aria-hidden=\"true\"><\/span><span class=\"list_content\"><p>Time Slot<\/p><\/span><\/li>\n\n\n\n<li><span class=\"list_icon icon_flowchart\" aria-hidden=\"true\"><\/span><span class=\"list_content\"><p>Day<\/p><\/span><\/li>\n\n\n\n<li><span class=\"list_icon icon_flowchart\" aria-hidden=\"true\"><\/span><span class=\"list_content\"><p>Room<\/p><\/span><\/li>\n<\/ul>\n\n\n\n<p><strong>What global taxonomies are good for:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-greyd-list\" id=\"list_69d273fb11728\">\n<li style=\"margin-left: 20px; \"><span class=\"list_icon\"><\/span><span class=\"list_content\"><p><strong>Reusability<\/strong>: One term like \u201cIntermediate\u201d (under Level) can be applied across posts, avoiding duplicate display.<\/p><\/span><\/li>\n\n\n\n<li style=\"margin-left: 20px; \"><span class=\"list_icon\"><\/span><span class=\"list_content\"><p><strong>Filtering<\/strong>: Users can select terms like \u201cMonday\u201d or \u201cBeginner\u201d to filter query loops.<\/p><\/span><\/li>\n\n\n\n<li style=\"margin-left: 20px; \"><span class=\"list_icon\"><\/span><span class=\"list_content\"><p><strong>Search<\/strong>: You can filter content by global taxonomy values in forms or filters.<\/p><\/span><\/li>\n<\/ul>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column col-12 is-layout-flow wp-block-column-is-layout-flow\">\n<h3 class=\"wp-block-heading\">How CPTs and Global Taxonomies are linked<\/h3>\n\n\n\n<ul class=\"wp-block-greyd-list\" id=\"list_69d273fb117f8\">\n<li><span class=\"list_icon arrow_left-right_alt\" aria-hidden=\"true\"><\/span><span class=\"list_content\"><p>CPT Teacher is linked to the global taxonomies called Yoga Styles and Instructor<\/p><\/span><\/li>\n\n\n\n<li><span class=\"list_icon arrow_left-right_alt\" aria-hidden=\"true\"><\/span><span class=\"list_content\"><p>CPT Class is linked to all global taxonomies for extensive filtering in display, as you can see in the sample pages.<\/p><\/span><\/li>\n\n\n\n<li><span class=\"list_icon arrow_left-right_alt\" aria-hidden=\"true\"><\/span><span class=\"list_content\"><p>CPT Classroom is linked to the global taxonomies called room and Yoga Style <\/p><\/span><\/li>\n<\/ul>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Why this is a solid approach with dynamic data<\/h2>\n\n\n\n<p class=\"has-medium-font-size\"><strong>TL;DR:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Best practice<\/strong>: Use both taxonomies (for filtering) and custom fields (for sorting)<\/li>\n\n\n\n<li><strong>WordPress limitation<\/strong>: You can\u2019t sort posts by taxonomy name or order<\/li>\n\n\n\n<li><strong>Greyd.Suite<\/strong>: It doesn\u2019t bypass that limitation, it works with it. Which makes for superfast websites. In geek speak: We use tax_query instead of meta_query.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">About display conditions and dynamic data<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Feature<\/strong><\/th><th><strong>Greyd.Suite<\/strong><\/th><th><strong>ACF<\/strong><\/th><\/tr><\/thead><tbody><tr><td>Show\/hide <strong>frontend blocks<\/strong> based on conditions<\/td><td>\u2705 Yes<\/td><td>\u26a0\ufe0f Only via custom PHP or theme templates<\/td><\/tr><tr><td>Conditional display of <strong>query results<\/strong><\/td><td>\u2705 Yes<\/td><td>\u26a0\ufe0f Possible, but requires meta_query or code<\/td><\/tr><tr><td>Form logic (e.g. Greyd Forms)<\/td><td>\u2705 Supports conditions for fields, sections, etc.<\/td><td>\u274c Not part of ACF<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This is your prefab content installation This front page is without design because we know you want to add your own. We have provided dynamic content and featured images for you in this installation. We also created example pages with filtered display, so you can do what you do best: apply own design, add regular [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"greyd_block_editor_preview":[],"footnotes":""},"class_list":["post-334","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/prefab.greyd.io\/dynamic-yoga\/wp-json\/wp\/v2\/pages\/334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prefab.greyd.io\/dynamic-yoga\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/prefab.greyd.io\/dynamic-yoga\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/prefab.greyd.io\/dynamic-yoga\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prefab.greyd.io\/dynamic-yoga\/wp-json\/wp\/v2\/comments?post=334"}],"version-history":[{"count":5,"href":"https:\/\/prefab.greyd.io\/dynamic-yoga\/wp-json\/wp\/v2\/pages\/334\/revisions"}],"predecessor-version":[{"id":704,"href":"https:\/\/prefab.greyd.io\/dynamic-yoga\/wp-json\/wp\/v2\/pages\/334\/revisions\/704"}],"wp:attachment":[{"href":"https:\/\/prefab.greyd.io\/dynamic-yoga\/wp-json\/wp\/v2\/media?parent=334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}