CINXE.COM
Using Post Reference Field to Set-Up One-to-Many Relationships in WordPress - Toolset
<!DOCTYPE html> <html lang="en-US" class="no-js"> <head> <meta charset="UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="profile" href="http://gmpg.org/xfn/11"/> <link rel="pingback" href="https://toolset.com/xmlrpc.php"/> <link rel="apple-touch-icon" sizes="180x180" href="https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/img/apple-touch-icon.png"/> <script type="text/javascript" src="https://app.termly.io/resource-blocker/e9fa822a-6735-49a0-831d-faa4dc0ee97c?autoBlock=on" data-rocket-defer defer> </script><meta name='robots' content='index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' /> <!-- Google Tag Manager for WordPress by gtm4wp.com --> <script data-cfasync="false" data-pagespeed-no-defer> var gtm4wp_datalayer_name = "dataLayer"; var dataLayer = dataLayer || []; const gtm4wp_use_sku_instead = false; const gtm4wp_currency = 'EUR'; const gtm4wp_product_per_impression = false; const gtm4wp_clear_ecommerce = false; </script> <!-- End Google Tag Manager for WordPress by gtm4wp.com --> <!-- This site is optimized with the Yoast SEO plugin v23.7 - https://yoast.com/wordpress/plugins/seo/ --> <title>Using Post Reference Field to Set-Up One-to-Many Relationships in WordPress - Toolset</title> <meta name="description" content="The Post Reference field allows to link from one post to another. Under the hood, this field creates a one-to-many relationship, which allows you to display the related posts." /> <link rel="canonical" href="https://toolset.com/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/" /> <meta property="og:locale" content="en_US" /> <meta property="og:type" content="article" /> <meta property="og:title" content="Using Post Reference Field to Set-Up One-to-Many Relationships in WordPress - Toolset" /> <meta property="og:description" content="The Post Reference field allows to link from one post to another. Under the hood, this field creates a one-to-many relationship, which allows you to display the related posts." /> <meta property="og:url" content="https://toolset.com/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/" /> <meta property="og:site_name" content="Toolset" /> <meta property="article:publisher" content="https://www.facebook.com/toolsetplugins/" /> <meta property="og:image" content="https://toolset.com/wp-content/uploads/2020/08/Using-Post-Reference-Field-to-Display-Data-of-Related-Posts.png" /> <meta property="og:image:width" content="1244" /> <meta property="og:image:height" content="700" /> <meta property="og:image:type" content="image/png" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:site" content="@ToolsetPlugins" /> <meta name="twitter:label1" content="Est. reading time" /> <meta name="twitter:data1" content="2 minutes" /> <script type="application/ld+json" class="yoast-schema-graph">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://toolset.com/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/","url":"https://toolset.com/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/","name":"Using Post Reference Field to Set-Up One-to-Many Relationships in WordPress - Toolset","isPartOf":{"@id":"https://toolset.com/#website"},"primaryImageOfPage":{"@id":"https://toolset.com/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/#primaryimage"},"image":{"@id":"https://toolset.com/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/#primaryimage"},"thumbnailUrl":"https://toolset.com/wp-content/uploads/2020/08/Using-Post-Reference-Field-to-Display-Data-of-Related-Posts.png","dateModified":"2020-09-15T12:47:45+00:00","breadcrumb":{"@id":"https://toolset.com/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https://toolset.com/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https://toolset.com/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/#primaryimage","url":"https://toolset.com/wp-content/uploads/2020/08/Using-Post-Reference-Field-to-Display-Data-of-Related-Posts.png","contentUrl":"https://toolset.com/wp-content/uploads/2020/08/Using-Post-Reference-Field-to-Display-Data-of-Related-Posts.png","width":1244,"height":700},{"@type":"BreadcrumbList","@id":"https://toolset.com/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://toolset.com/"},{"@type":"ListItem","position":2,"name":"Course lessons","item":"https://toolset.com/course-lesson/"},{"@type":"ListItem","position":3,"name":"Using Post Reference Field to Set-Up One-to-Many Relationships"}]},{"@type":"WebSite","@id":"https://toolset.com/#website","url":"https://toolset.com/","name":"Toolset","description":"WordPress development framework with no coding","publisher":{"@id":"https://toolset.com/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://toolset.com/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https://toolset.com/#organization","name":"Toolset","url":"https://toolset.com/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https://toolset.com/#/schema/logo/image/","url":"https://toolset.com/wp-content/uploads/2021/07/toolset-fb-dark-bg.jpg","contentUrl":"https://toolset.com/wp-content/uploads/2021/07/toolset-fb-dark-bg.jpg","width":1200,"height":628,"caption":"Toolset"},"image":{"@id":"https://toolset.com/#/schema/logo/image/"},"sameAs":["https://www.facebook.com/toolsetplugins/","https://x.com/ToolsetPlugins","https://www.linkedin.com/company/toolset","https://www.youtube.com/channel/UCkXU96V638K0OQ-297dL2qA"]}]}</script> <!-- / Yoast SEO plugin. --> <style id='wp-emoji-styles-inline-css' type='text/css'> img.wp-smiley, img.emoji { display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important; width: 1em !important; margin: 0 0.07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } </style> <style id='elasticpress-related-posts-style-inline-css' type='text/css'> .editor-styles-wrapper .wp-block-elasticpress-related-posts ul,.wp-block-elasticpress-related-posts ul{list-style-type:none;padding:0}.editor-styles-wrapper .wp-block-elasticpress-related-posts ul li a>div{display:inline} </style> <style id='view_editor_gutenberg_frontend_assets-inline-css' type='text/css'> .wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default > span.wpv-sort-list,.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default .wpv-sort-list-item {border-color: #cdcdcd;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default .wpv-sort-list-item a {color: #444;background-color: #fff;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default a:hover,.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default a:focus {color: #000;background-color: #eee;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default .wpv-sort-list-item.wpv-sort-list-current a {color: #000;background-color: #eee;} .wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default > span.wpv-sort-list,.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default .wpv-sort-list-item {border-color: #cdcdcd;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default .wpv-sort-list-item a {color: #444;background-color: #fff;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default a:hover,.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default a:focus {color: #000;background-color: #eee;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default .wpv-sort-list-item.wpv-sort-list-current a {color: #000;background-color: #eee;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-grey > span.wpv-sort-list,.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-grey .wpv-sort-list-item {border-color: #cdcdcd;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-grey .wpv-sort-list-item a {color: #444;background-color: #eeeeee;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-grey a:hover,.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-grey a:focus {color: #000;background-color: #e5e5e5;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-grey .wpv-sort-list-item.wpv-sort-list-current a {color: #000;background-color: #e5e5e5;} .wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default > span.wpv-sort-list,.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default .wpv-sort-list-item {border-color: #cdcdcd;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default .wpv-sort-list-item a {color: #444;background-color: #fff;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default a:hover,.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default a:focus {color: #000;background-color: #eee;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-default .wpv-sort-list-item.wpv-sort-list-current a {color: #000;background-color: #eee;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-grey > span.wpv-sort-list,.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-grey .wpv-sort-list-item {border-color: #cdcdcd;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-grey .wpv-sort-list-item a {color: #444;background-color: #eeeeee;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-grey a:hover,.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-grey a:focus {color: #000;background-color: #e5e5e5;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-grey .wpv-sort-list-item.wpv-sort-list-current a {color: #000;background-color: #e5e5e5;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-blue > span.wpv-sort-list,.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-blue .wpv-sort-list-item {border-color: #0099cc;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-blue .wpv-sort-list-item a {color: #444;background-color: #cbddeb;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-blue a:hover,.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-blue a:focus {color: #000;background-color: #95bedd;}.wpv-sort-list-dropdown.wpv-sort-list-dropdown-style-blue .wpv-sort-list-item.wpv-sort-list-current a {color: #000;background-color: #95bedd;} </style> <style id='classic-theme-styles-inline-css' type='text/css'> /*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} </style> <style id='global-styles-inline-css' type='text/css'> :root{--wp--preset--aspect-ratio--square: 1;--wp--preset--aspect-ratio--4-3: 4/3;--wp--preset--aspect-ratio--3-4: 3/4;--wp--preset--aspect-ratio--3-2: 3/2;--wp--preset--aspect-ratio--2-3: 2/3;--wp--preset--aspect-ratio--16-9: 16/9;--wp--preset--aspect-ratio--9-16: 9/16;--wp--preset--color--black: #000000;--wp--preset--color--cyan-bluish-gray: #abb8c3;--wp--preset--color--white: #FFF;--wp--preset--color--pale-pink: #f78da7;--wp--preset--color--vivid-red: #cf2e2e;--wp--preset--color--luminous-vivid-orange: #ff6900;--wp--preset--color--luminous-vivid-amber: #fcb900;--wp--preset--color--light-green-cyan: #7bdcb5;--wp--preset--color--vivid-green-cyan: #00d084;--wp--preset--color--pale-cyan-blue: #8ed1fc;--wp--preset--color--vivid-cyan-blue: #0693e3;--wp--preset--color--vivid-purple: #9b51e0;--wp--preset--color--primary: #ed793e;--wp--preset--color--secondary: #783eed;--wp--preset--color--green: #3eed78;--wp--preset--color--dark-gray: #343434;--wp--preset--color--gray: #666666;--wp--preset--color--light-gray: #f5f5f5;--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%);--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%);--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%);--wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%);--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%);--wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%);--wp--preset--gradient--blush-light-purple: linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%);--wp--preset--gradient--blush-bordeaux: linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%);--wp--preset--gradient--luminous-dusk: linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%);--wp--preset--gradient--pale-ocean: linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%);--wp--preset--gradient--electric-grass: linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%);--wp--preset--gradient--midnight: linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);--wp--preset--font-size--small: 13px;--wp--preset--font-size--medium: 20px;--wp--preset--font-size--large: 36px;--wp--preset--font-size--x-large: 42px;--wp--preset--font-family--inter: "Inter", sans-serif;--wp--preset--font-family--cardo: Cardo;--wp--preset--spacing--20: 0.44rem;--wp--preset--spacing--30: 0.67rem;--wp--preset--spacing--40: 1rem;--wp--preset--spacing--50: 1.5rem;--wp--preset--spacing--60: 2.25rem;--wp--preset--spacing--70: 3.38rem;--wp--preset--spacing--80: 5.06rem;--wp--preset--shadow--natural: 6px 6px 9px rgba(0, 0, 0, 0.2);--wp--preset--shadow--deep: 12px 12px 50px rgba(0, 0, 0, 0.4);--wp--preset--shadow--sharp: 6px 6px 0px rgba(0, 0, 0, 0.2);--wp--preset--shadow--outlined: 6px 6px 0px -3px rgba(255, 255, 255, 1), 6px 6px rgba(0, 0, 0, 1);--wp--preset--shadow--crisp: 6px 6px 0px rgba(0, 0, 0, 1);}:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flex{display: flex;}.is-layout-flex{flex-wrap: wrap;align-items: center;}.is-layout-flex > :is(*, div){margin: 0;}body .is-layout-grid{display: grid;}.is-layout-grid > :is(*, div){margin: 0;}:where(.wp-block-columns.is-layout-flex){gap: 2em;}:where(.wp-block-columns.is-layout-grid){gap: 2em;}:where(.wp-block-post-template.is-layout-flex){gap: 1.25em;}:where(.wp-block-post-template.is-layout-grid){gap: 1.25em;}.has-black-color{color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-color{color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-color{color: var(--wp--preset--color--white) !important;}.has-pale-pink-color{color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-color{color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-color{color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-color{color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-color{color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-color{color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-color{color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-color{color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-color{color: var(--wp--preset--color--vivid-purple) !important;}.has-black-background-color{background-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-background-color{background-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-background-color{background-color: var(--wp--preset--color--white) !important;}.has-pale-pink-background-color{background-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-background-color{background-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-background-color{background-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-background-color{background-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-background-color{background-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-background-color{background-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-background-color{background-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-background-color{background-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-background-color{background-color: var(--wp--preset--color--vivid-purple) !important;}.has-black-border-color{border-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-border-color{border-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-border-color{border-color: var(--wp--preset--color--white) !important;}.has-pale-pink-border-color{border-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-border-color{border-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-border-color{border-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-border-color{border-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-border-color{border-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-border-color{border-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-border-color{border-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-border-color{border-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-border-color{border-color: var(--wp--preset--color--vivid-purple) !important;}.has-vivid-cyan-blue-to-vivid-purple-gradient-background{background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;}.has-light-green-cyan-to-vivid-green-cyan-gradient-background{background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;}.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;}.has-luminous-vivid-orange-to-vivid-red-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;}.has-very-light-gray-to-cyan-bluish-gray-gradient-background{background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;}.has-cool-to-warm-spectrum-gradient-background{background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;}.has-blush-light-purple-gradient-background{background: var(--wp--preset--gradient--blush-light-purple) !important;}.has-blush-bordeaux-gradient-background{background: var(--wp--preset--gradient--blush-bordeaux) !important;}.has-luminous-dusk-gradient-background{background: var(--wp--preset--gradient--luminous-dusk) !important;}.has-pale-ocean-gradient-background{background: var(--wp--preset--gradient--pale-ocean) !important;}.has-electric-grass-gradient-background{background: var(--wp--preset--gradient--electric-grass) !important;}.has-midnight-gradient-background{background: var(--wp--preset--gradient--midnight) !important;}.has-small-font-size{font-size: var(--wp--preset--font-size--small) !important;}.has-medium-font-size{font-size: var(--wp--preset--font-size--medium) !important;}.has-large-font-size{font-size: var(--wp--preset--font-size--large) !important;}.has-x-large-font-size{font-size: var(--wp--preset--font-size--x-large) !important;} :where(.wp-block-post-template.is-layout-flex){gap: 1.25em;}:where(.wp-block-post-template.is-layout-grid){gap: 1.25em;} :where(.wp-block-columns.is-layout-flex){gap: 2em;}:where(.wp-block-columns.is-layout-grid){gap: 2em;} :root :where(.wp-block-pullquote){font-size: 1.5em;line-height: 1.6;} </style> <link rel='stylesheet' id='dashicons-css' data-oprm-on-first-user-action data-oprm-id=wpDashIcons data-oprm-src='https://toolset.com/wp-includes/css/dashicons.min.css?ver=6.6.2' type='text/css' media='all' /> <link data-minify="1" rel='stylesheet' id='anchor-header-css' href='https://toolset.com/wp-content/cache/min/1/wp-content/plugins/icl-mpp/res/css/anchor-header.css?ver=1730703566' type='text/css' media='all' /> <link data-minify="1" rel='stylesheet' id='otgs-icons-css' href='https://toolset.com/wp-content/cache/min/1/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/icons/css/otgs-icons.css?ver=1730703369' type='text/css' media='all' /> <style id='woocommerce-inline-inline-css' type='text/css'> .woocommerce form .form-row .required { visibility: visible; } </style> <link data-minify="1" rel='stylesheet' id='wp-postratings-css' href='https://toolset.com/wp-content/cache/min/1/wp-content/plugins/wp-postratings/css/postratings-css.css?ver=1730703369' type='text/css' media='all' /> <link rel='stylesheet' id='wpml-legacy-dropdown-0-css' href='https://toolset.com/wp-content/plugins/sitepress-multilingual-cms/templates/language-switchers/legacy-dropdown/style.min.css?ver=1' type='text/css' media='all' /> <style id='wpml-legacy-dropdown-0-inline-css' type='text/css'> .wpml-ls-statics-shortcode_actions{background-color:#eeeeee;}.wpml-ls-statics-shortcode_actions, .wpml-ls-statics-shortcode_actions .wpml-ls-sub-menu, .wpml-ls-statics-shortcode_actions a {border-color:#cdcdcd;}.wpml-ls-statics-shortcode_actions a, .wpml-ls-statics-shortcode_actions .wpml-ls-sub-menu a, .wpml-ls-statics-shortcode_actions .wpml-ls-sub-menu a:link, .wpml-ls-statics-shortcode_actions li:not(.wpml-ls-current-language) .wpml-ls-link, .wpml-ls-statics-shortcode_actions li:not(.wpml-ls-current-language) .wpml-ls-link:link {color:#444444;background-color:#ffffff;}.wpml-ls-statics-shortcode_actions .wpml-ls-sub-menu a:hover,.wpml-ls-statics-shortcode_actions .wpml-ls-sub-menu a:focus, .wpml-ls-statics-shortcode_actions .wpml-ls-sub-menu a:link:hover, .wpml-ls-statics-shortcode_actions .wpml-ls-sub-menu a:link:focus {color:#000000;background-color:#eeeeee;}.wpml-ls-statics-shortcode_actions .wpml-ls-current-language > a {color:#444444;background-color:#ffffff;}.wpml-ls-statics-shortcode_actions .wpml-ls-current-language:hover>a, .wpml-ls-statics-shortcode_actions .wpml-ls-current-language>a:focus {color:#000000;background-color:#eeeeee;} </style> <link rel='stylesheet' id='wpml-menu-item-0-css' href='https://toolset.com/wp-content/plugins/sitepress-multilingual-cms/templates/language-switchers/menu-item/style.min.css?ver=1' type='text/css' media='all' /> <style id='wpml-menu-item-0-inline-css' type='text/css'> .wpml-ls-current-language.wpml-ls-menu-item ul { min-width: 0; } </style> <link data-minify="1" rel='stylesheet' id='cms-navigation-style-base-css' href='https://toolset.com/wp-content/cache/min/1/wp-content/plugins/wpml-cms-nav/res/css/cms-navigation-base.css?ver=1730703369' type='text/css' media='screen' /> <link data-minify="1" rel='stylesheet' id='cms-navigation-style-css' href='https://toolset.com/wp-content/cache/min/1/wp-content/plugins/wpml-cms-nav/res/css/cms-navigation.css?ver=1730703369' type='text/css' media='screen' /> <link data-minify="1" rel='stylesheet' id='toolset-main-css' href='https://toolset.com/wp-content/cache/min/1/wp-content/themes/wp-types-bootstrap-theme/style.css?ver=1730703369' type='text/css' media='all' /> <link data-minify="1" rel='stylesheet' id='comments-css' href='https://toolset.com/wp-content/cache/min/1/wp-content/themes/wp-types-bootstrap-theme/css/comments.css?ver=1730703369' type='text/css' media='all' /> <link data-minify="1" rel='stylesheet' id='blog-css' href='https://toolset.com/wp-content/cache/min/1/wp-content/themes/wp-types-bootstrap-theme/css/page-blog.css?ver=1730703369' type='text/css' media='all' /> <link data-minify="1" rel='stylesheet' id='training-courses-css' href='https://toolset.com/wp-content/cache/min/1/wp-content/themes/wp-types-bootstrap-theme/css/page-courses.css?ver=1730703603' type='text/css' media='all' /> <script type='text/javascript'> /* <![CDATA[ */ var ajaxurl = 'https://toolset.com/wp-admin/admin-ajax.php'; /* ]]> */ </script> <script data-minify="1" type="text/javascript" src="https://toolset.com/wp-content/cache/min/1/wp-content/plugins/cred-frontend-editor/vendor/toolset/common-es/public/toolset-common-es-frontend.js?ver=1730703369" id="toolset-common-es-frontend-js"></script> <script type="text/javascript" src="https://toolset.com/wp-includes/js/jquery/jquery.min.js?ver=3.7.1" id="jquery-core-js"></script> <script type="text/javascript" id="codesnipjs-js-extra"> /* <![CDATA[ */ var the_ajax_script = {"ajaxurl":"https:\/\/toolset.com\/wp-admin\/admin-ajax.php","postid_to_ajax":"1727291"}; /* ]]> */ </script> <script type="text/javascript" data-oprm-on-first-user-action data-oprm-id=codeSnips data-oprm-src="https://toolset.com/wp-content/plugins/code-snips/res/js/codesnipjs.js?ver=1.9.3.2" id="codesnipjs-js"></script> <script type="text/javascript" src="https://toolset.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shCore.js?ver=6.6.2" id="shCore-js"></script> <script type="text/javascript" src="https://toolset.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushJScript.js?ver=6.6.2" id="shBrushJScript-js"></script> <script type="text/javascript" src="https://toolset.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushCss.js?ver=6.6.2" id="shBrushCss-js"></script> <script type="text/javascript" src="https://toolset.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushXml.js?ver=6.6.2" id="shBrushXml-js"></script> <script type="text/javascript" src="https://toolset.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushPhp.js?ver=6.6.2" id="shBrushPhp-js"></script> <script data-minify="1" type="text/javascript" src="https://toolset.com/wp-content/cache/min/1/wp-content/plugins/icl-mpp/res/js/anchor-header.js?ver=1730703567" id="anchor-header-js" data-rocket-defer defer></script> <script type="text/javascript" src="https://toolset.com/wp-content/plugins/icl-mpp/modules/HTMX/assets/js/htmx.min.js?ver=1.9.5" id="htmx-js" data-rocket-defer defer></script> <script type="text/javascript" id="htmx-extras-js-extra"> /* <![CDATA[ */ var wp_data = {"nonce":"bc5573bfda"}; /* ]]> */ </script> <script data-minify="1" type="text/javascript" src="https://toolset.com/wp-content/cache/min/1/wp-content/plugins/icl-mpp/modules/HTMX/assets/js/htmx-extras.js?ver=1730703369" id="htmx-extras-js" data-rocket-defer defer></script> <script type="text/javascript" data-oprm-manual data-oprm-id=wonderPluginLightbox data-oprm-src="https://toolset.com/wp-content/plugins/wonderplugin-lightbox/engine/wonderpluginlightbox.js?ver=10.4.1PRO" id="wonderplugin-lightbox-script-js"></script> <script type="text/javascript" id="woocommerce-js-extra"> /* <![CDATA[ */ var woocommerce_params = {"ajax_url":"\/wp-admin\/admin-ajax.php","wc_ajax_url":"\/?wc-ajax=%%endpoint%%"}; /* ]]> */ </script> <script type="text/javascript" src="https://toolset.com/wp-content/plugins/sitepress-multilingual-cms/templates/language-switchers/legacy-dropdown/script.min.js?ver=1" id="wpml-legacy-dropdown-0-js" data-rocket-defer defer></script> <script type="text/javascript" id="otgs-public-resources-manager-js-extra"> /* <![CDATA[ */ var oprmConstants = {"showInfoMessages":"","attributeId":"data-oprm-id","attributeSrc":"data-oprm-src","attributeLazyLoadManual":"data-oprm-manual","attributeLazyLoadOnFirstUserAction":"data-oprm-on-first-user-action","attributeScriptToLoadBeforeCallbacks":"data-oprm-script-to-load-before-callbacks","attributeScriptToLoadAfterCallbacks":"data-oprm-script-to-load-after-callbacks"}; /* ]]> */ </script> <script type="text/javascript" src="https://toolset.com/wp-content/plugins/otgs-public-resources-manager/build/otgs-public-resources-manager.min.js" id="otgs-public-resources-manager-js" data-rocket-defer defer></script> <link rel="https://api.w.org/" href="https://toolset.com/wp-json/" /><link rel="alternate" title="JSON" type="application/json" href="https://toolset.com/wp-json/wp/v2/course-lesson/1727291" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://toolset.com/xmlrpc.php?rsd" /> <meta name="generator" content="WordPress 6.6.2" /> <meta name="generator" content="WooCommerce 9.3.3" /> <link rel="alternate" title="oEmbed (JSON)" type="application/json+oembed" href="https://toolset.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Ftoolset.com%2Fcourse-lesson%2Fusing-post-reference-field-to-set-up-one-to-many-relationships%2F" /> <link rel="alternate" title="oEmbed (XML)" type="text/xml+oembed" href="https://toolset.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Ftoolset.com%2Fcourse-lesson%2Fusing-post-reference-field-to-set-up-one-to-many-relationships%2F&format=xml" /> <meta name="generator" content="WPML ver:4.7.0 stt:1,4,3,2;" /> <script type="text/javascript"> if ('function' !== typeof otgs_datalayer_push) { function otgs_datalayer_push(eventlabel) { if ('object' === typeof window.dataLayer) { window.dataLayer.push({ event: 'gaEvent', eventCategory: 'Product', eventAction: 'purchase', eventLabel: eventlabel }); } } } </script> <!-- Google Tag Manager for WordPress by gtm4wp.com --> <!-- GTM Container placement set to manual --> <script data-cfasync="false" data-pagespeed-no-defer type="text/javascript"> var dataLayer_content = {"visitorLoginState":"logged-out","visitorType":"visitor-logged-out","pagePostType":"course-lesson","pagePostType2":"single-course-lesson","cartContent":{"totals":{"applied_coupons":[],"discount_total":0,"subtotal":0,"total":0},"items":[]}}; dataLayer.push( dataLayer_content ); </script> <script data-cfasync="false"> (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-KHXMTVB'); </script> <!-- End Google Tag Manager for WordPress by gtm4wp.com --> <link rel='preload' href='https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/css/fonts/source-sans-pro/source-sans-pro-v14-latin-regular.woff2' as='font' type='font/woff2' crossorigin> <link rel='preload' href='https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/css/fonts/source-sans-pro/source-sans-pro-v14-latin-600.woff2' as='font' type='font/woff2' crossorigin> <style type='text/css'> @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 400; src: local(''), url('https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/css/fonts/source-sans-pro/source-sans-pro-v14-latin-regular.woff2') format('woff2'), url('https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/css/fonts/source-sans-pro/source-sans-pro-v14-latin-regular.woff') format('woff'); } /* source-sans-pro-600 - latin */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 600; src: local(''), url('https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/css/fonts/source-sans-pro/source-sans-pro-v14-latin-600.woff2') format('woff2'), url('https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/css/fonts/source-sans-pro/source-sans-pro-v14-latin-600.woff') format('woff'); } /* source-sans-pro-700 - latin */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 700; src: local(''), url('https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/css/fonts/source-sans-pro/source-sans-pro-v14-latin-600.woff2') format('woff2'), url('https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/css/fonts/source-sans-pro/source-sans-pro-v14-latin-600.woff') format('woff'); } /* source-sans-pro-900 - latin */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 900; src: local(''), url('https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/css/fonts/source-sans-pro/source-sans-pro-v14-latin-600.woff2') format('woff2'), url('https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/css/fonts/source-sans-pro/source-sans-pro-v14-latin-600.woff') format('woff'); } </style> <noscript><style>.woocommerce-product-gallery{ opacity: 1 !important; }</style></noscript> <script> window.addEventListener("load",function(){ var c={script:false,link:false}; function ls(s) { if(!['script','link'].includes(s)||c[s]){return;}c[s]=true; var d=document,f=d.getElementsByTagName(s)[0],j=d.createElement(s); if(s==='script'){j.async=true;j.src='https://toolset.com/wp-content/plugins/wp-views/vendor/toolset/blocks/public/js/frontend.js?v=1.6.13';}else{ j.rel='stylesheet';j.href='https://toolset.com/wp-content/plugins/wp-views/vendor/toolset/blocks/public/css/style.css?v=1.6.13';} f.parentNode.insertBefore(j, f); }; function ex(){ls('script');ls('link')} window.addEventListener("scroll", ex, {once: true}); if (('IntersectionObserver' in window) && ('IntersectionObserverEntry' in window) && ('intersectionRatio' in window.IntersectionObserverEntry.prototype)) { var i = 0, fb = document.querySelectorAll("[class^='tb-']"), o = new IntersectionObserver(es => { es.forEach(e => { o.unobserve(e.target); if (e.intersectionRatio > 0) { ex();o.disconnect();}else{ i++;if(fb.length>i){o.observe(fb[i])}} }) }); if (fb.length) { o.observe(fb[i]) } } }) </script> <noscript> <link data-minify="1" rel="stylesheet" href="https://toolset.com/wp-content/cache/min/1/wp-content/plugins/wp-views/vendor/toolset/blocks/public/css/style.css?ver=1730703369"> </noscript><style id='wp-fonts-local' type='text/css'> @font-face{font-family:Inter;font-style:normal;font-weight:300 900;font-display:fallback;src:url('https://toolset.com/wp-content/plugins/woocommerce/assets/fonts/Inter-VariableFont_slnt,wght.woff2') format('woff2');font-stretch:normal;} @font-face{font-family:Cardo;font-style:normal;font-weight:400;font-display:fallback;src:url('https://toolset.com/wp-content/plugins/woocommerce/assets/fonts/cardo_normal_400.woff2') format('woff2');} </style> <link rel="icon" href="https://toolset.com/wp-content/uploads/2017/06/toolset-favicon-90x90.png" sizes="32x32" /> <link rel="icon" href="https://toolset.com/wp-content/uploads/2017/06/toolset-favicon.png" sizes="192x192" /> <link rel="apple-touch-icon" href="https://toolset.com/wp-content/uploads/2017/06/toolset-favicon.png" /> <meta name="msapplication-TileImage" content="https://toolset.com/wp-content/uploads/2017/06/toolset-favicon.png" /> <style type="text/css" id="wp-custom-css"> /* You can add your own CSS here. Click the help icon above to learn more. */ body.page-id-620642 { background-color: #fff; } .toolset-box-shadow { color: #666; box-shadow: 0 20px 37.24px 0.76px rgba(107, 107, 108, 0.2); margin-bottom: 40px; } /************************ * Post Relationships API * ***********************/ @media (min-width: 992px) { .old-vs-new-code .gutter { display: none; } } .old-vs-new-code #codesnipfrontend { display: none; } .post-content .syntaxhighlighter, .post-content .syntaxhighlighter .code { overflow-y: hidden !important; } .old-vs-new-code .code .container { min-height: 17em !important; } .old-vs-new-code>div { padding: 30px 19px 20px; margin-top: 30px; } .old-vs-new-code>div:last-child{ box-shadow: 0px 9px 29px -1px rgba(106,107,108,0.16); } .old-vs-new-code h3 { font-size: 16px; text-transform: uppercase; font-weight: 600; padding-top: 0; letter-spacing: .15em; } .post-content article>h2 { font-size: 28px; padding-top: 30px; } .page-id-58 .post-content h2 { font-weight: 600; color: #ed793e !important; } .page-id-58 .post-content h2 svg, .page-id-58 .post-content h2 i.fa { margin-right: 10px; } .mb-0 { margin-bottom: 0 !important; } .mt-0 { margin-top: 0 !important; } @media (min-width: 768px) { .fixed-menu { top: 100px !important; } } .comment .comment-body .comment-content, .comment .comment-author .toolset-team { color: #343434; } .lead { font-size: 20px; color: #343434; } .wp-block-toolset-blocks-container.course-image { position: relative; overflow:hidden; } .wp-block-toolset-blocks-container.preview { position: relative; } .home .wp-block-toolset-blocks-container.preview .wp-block-image:first-child { opacity: 0.6; transition: transform 0.25s ease; } .wp-block-toolset-blocks-container.preview-top .wp-block-image:first-child { opacity: 0.7; transition: transform 0.25s ease; } .wp-block-toolset-blocks-container.preview:hover .wp-block-image:first-child { opacity: 1.0; transition:0.5s; } .wp-block-toolset-blocks-container.preview .wp-block-image:last-child { position: absolute; top: 50%; left: 50%; margin: -30px 0 0 -30px; } .wp-block-toolset-blocks-container.preview-top .wp-block-image:last-child { top: 36%; left: 54%; margin: 0; } .post-type-archive-training-course .breadcrumbs { display: none;} .post-type-archive-training-course .post-content .breadcrumbs { display: block;} body.post-type-archive-training-course .btn-arrow i.tb-button__icon { font-size: 14px; line-height: 22px; } .doc-content { padding:17px; } .btn-round { border: none; border-radius: 5px; padding: 14px 25px; margin-top: 20px; font-size: 18px; font-weight: 700; } @media (max-width: 767px) { .page-author-meta { font-size: 0.9em !important; } .page-author-meta__publish dl { margin-left: 10%; } } .single-course-lesson .page-title { margin-bottom: 65px; } .video-content ol[start="2"] { counter-increment: li 1; } .video-content ol[start="3"] { counter-increment: li 2; } .video-content ol[start="4"] { counter-increment: li 3; } .video-content ol[start="5"] { counter-increment: li 4; } .video-content ol[start="6"] { counter-increment: li 5; } .video-content ol[start="7"] { counter-increment: li 6; } .video-content ol[start="8"] { counter-increment: li 7; } .video-content ol[start="9"] { counter-increment: li 8; } .video-content ol ul { margin: 10px 0 20px 30px; } .video-content ol ul li:before { content: "\2022" !important; top: -2px !important; counter-increment: none !important; } .single-course-chapter .preview-video .tour-video img { width: 100%; height: auto; } .types-fields-menu li.active a { display: inline-block; } .single-course-chapter .entry-content .chapter-videos__grid-one .chapter-video__content .btn { flex-grow: 0; } .single-lesson-placement .entry-content h2, .single-course-lesson .entry-content h2 { font-size: 22px; font-weight: 600; } .single-lesson-placement .entry-content h3, .single-course-lesson .entry-content h3, .single-course-lesson-placement .entry-content h3 strong, .single-course-lesson .entry-content h3 strong { font-size: 20px; font-weight: 400; margin: 40px 0 20px; } .single-lesson-placement .entry-content h4, .single-course-lesson .entry-content h4 { font-size: 18px; font-weight: 400; } .lesson-image{ opacity:.5; } .lesson-image:hover{ opacity:.8; transition:0.5s; } .wp-block-toolset-blocks-container.lesson-video.preview:hover .wp-block-image:first-child { opacity: .8; transition:0.5s; } .mention-btn a{ text-align:left; } .book-icon{ position:absolute; top: 18px; width:40px; right:15px; height:40px } .html5lightbox-div { margin-bottom: -20px; } .syntaxhighlighter { border: 1px solid #ccc !important; padding: 1em 0; } .account-wrapper .acc-content .item-box p:last-child { margin-bottom: 0; } .account-wrapper .acc-content .item-box .flex-row-center { display: flex; align-items: center; } .modal-dialog-centered { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; min-height: calc(100% - (.5rem * 2)); } @media (min-width: 576px){ .modal-dialog { max-width: 550px; margin: 1.75rem auto; } } @media (min-width: 576px){ .modal-dialog-centered { min-height: calc(100% - (1.75rem * 2)); } } .tb-heading__lesson-parts { position: relative; font-size: 18px !important; font-weight: bold !important; margin-top: 0 !important; margin-bottom: 10px !important; } .tb-heading__lesson-parts .dashicons { font-size: smaller; margin-left: 0.5em; color: #888; margin-top: 4px; text-decoration: none; } .documentation-feedback a { text-decoration: none; } .documentation-feedback a img { margin-right: 10px; } .single-course .course-title { font-size: 36px; font-weight: 700; color: #fff; padding-bottom: 0; margin: 0 0 15px; } /************************ PURCHASE PAGE ***********************/ .bc-header__title { font-size: 3rem; } .guarantee-banner{ padding: 28px 14px 14px 65px; border-radius: 5px; background: url(https://toolset.com/wp-content/uploads/2020/03/shield-2.png) no-repeat 20px rgba(64,237, 122,0.16); background-size:30px; margin-bottom:90px; max-width:100%; } @media (min-width: 1000px) { .guarantee-banner{ width:890px; float:right; } } @media (max-width: 767px) { .container { width: 100%; } } .bc-footer { height: 100px; } .buy-comparison { margin-top: -1px; } .buy-comparison__head { margin-top: 50px; } .buy-comparison__head .buy-compare-col { border-bottom-left-radius: 0; border-bottom-right-radius: 0; } .buy-comparison__body .buy-compare-col { border-radius: 0; } .buy-comparison__foot .buy-compare-col { border-top-left-radius: 0; border-top-right-radius: 0; } .buy-comparison .col-title { margin-bottom: 0; } .buy-comparison .col-title .features-collapse { position: relative; color: #343434; text-decoration: none; } .buy-comparison .col-title .features-collapse:after { position: absolute; top: 3px; right: -20px; content: ''; display: block; width: 10px; height: 10px; background: url(/wp-content/themes/wp-types-bootstrap-theme/img/svg/navigation/arrow.svg) 99% 53% no-repeat; background-size: 10px; transform: rotate(180deg); transition: rotate 2s; } .buy-comparison .col-title .features-collapse.collapsed:after { transform: none; } #buy-comparison-features { overflow: hidden; position: relative; z-index: 10; } @media (max-width: 639px) { .buy-comparison { display: none; } .buy-comparison__head { display: block; } } @media (max-width: 991px) { #buy-comparison-features { display: block; } #buy-comparison-features .bc-row:empty { display: block; } } @media (max-width: 768px) { .single-course-lesson .lesson-row { flex-direction: column; } .single-course-lesson .lesson-row .entry-content { order: 0; margin-bottom: 50px; } } .entry-content img.aligncenter, .entry-content figure.aligncenter { max-width: 100%; height: auto; } /************************ HOMEPAGE *************************/ .site-head { margin-bottom: 0px; } .breadcrumbs{ margin-top: 25px; } #main-video{ width:1140px; max-width:100%; border-radius:5px; box-shadow: 1px 100px 100px -50px rgba(44,17,99,.4); } .white-link{ color:#fff; } .white-link:hover{ color:#3EED78; text-decoration:none; } body.page-id-306 .popover-content .checkout-table-white .description { color: #343434; } body.page-id-306 .details .fa-ul { list-style: none; padding-left: 0; } body.page-id-306 .details .fa-ul li i.fa-li { margin-right: 10px; } .single-lesson-placement .entry-content .chapter-videos__grid-one .chapter-video .preview-video img, .single-course-chapter .entry-content .chapter-videos__grid-one .chapter-video .preview-video img, .single-course-lesson .entry-content .chapter-videos__grid-one .chapter-video .preview-video img { min-width: 200px; } .home .img-55 img { height: 55px; width: auto; } .wp-block-image .tb-image.aligncenter { text-align: center; } .site-head--navigation>ul li a { white-space: nowrap; } .site-head--navigation ul.sub-menu li.wpml-ls-item { min-width: 46px; } .tb-social-share__facebook__share-button { background-image: url(/wp-content/plugins/wp-views/vendor/toolset/blocks/public/css/icons/facebook.svg) !important; } .tb-social-share__twitter__share-button { background-image: url(/wp-content/plugins/wp-views/vendor/toolset/blocks/public/css/icons/twitter.svg) !important; } .tb-social-share__linkedin__share-button { background-image: url(/wp-content/plugins/wp-views/vendor/toolset/blocks/public/css/icons/linkedin.svg) !important; } body.single.logged-in .wp-block-columns { display: flex; flex-wrap: wrap; } @media (min-width: 782px) { body.single.logged-in .wp-block-columns { flex-wrap: nowrap; } body.single.logged-in .wp-block-column:not(:first-child) { margin-left: 2em; } } .wp-block-image figcaption { display: block !important; } .legacydocalert { background-color:#fcf8e3; border-color:#faebcc; color:#8a6d3b; padding: 20px 10px 20px 20px; margin: 40px 0; } .gfield select, .gfield textarea { display: inline-block; width: 100%; height: 40px; } legend { border-bottom:none; } .contact-nav a.contact-nav-partner { background-image: url(https://toolset.com/wp-content/uploads/2022/01/terms.png); background-size: 46px; } h1[id]:hover a.anchorlink:before, h2[id]:hover a.anchorlink:before, h3[id]:hover a.anchorlink:before, h4[id]:hover a.anchorlink:before, h5[id]:hover a.anchorlink:before, h6[id]:hover a.anchorlink:before { content: "\47"; } h1[id]:hover a.anchorlink:hover, h2[id]:hover a.anchorlink:hover, h3[id]:hover a.anchorlink:hover, h4[id]:hover a.anchorlink:hover, h5[id]:hover a.anchorlink:hover, h6[id]:hover a.anchorlink:hover { text-decoration: none; } .checkout-table-white .description, .checkout-table-primary .description { color: #343434; } div[data-custom-class="body"] { max-width: 900px; margin: 0 auto; } div[data-custom-class="body"] div { line-height: 160%; margin-bottom: 15px; } span[data-custom-class="heading_1"] { display: block; font-size: 1.5em; margin: 30px 0 15px; } div[data-custom-class="body"] table td { padding: 10px 15px; } /* systemsdev-6074 */ #add_issue_tracker.plus-icon::after { margin-left: 8px; content: "k"; font-family: "otgs-icons"; font-size: 12px; color: #ed793e; } /* end systemsdev-6074 */ </style> <noscript><style id="rocket-lazyload-nojs-css">.rll-youtube-player, [data-lazy-src]{display:none !important;}</style></noscript> <!--[if lt IE 9]> <script src="https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/js/html5shiv.min.js" type="text/javascript"></script> <![endif]--> <meta name="generator" content="WP Rocket 3.17.2" data-wpr-features="wpr_defer_js wpr_minify_js wpr_lazyload_images wpr_lazyload_iframes wpr_image_dimensions wpr_minify_css wpr_desktop" /></head> <body class="course-lesson-template-default single single-course-lesson postid-1727291 theme-wp-types-bootstrap-theme woocommerce-no-js course-lesson-using-post-reference-field-to-set-up-one-to-many-relationships views-template-ct-course-lesson"> <a id="toolset-skip-nav" class="screen-reader-text" href="#main-container"> Skip Navigation</a> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KHXMTVB" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" display="none"><symbol id="ico-facebook"><circle cx="17" cy="17" r="17" fill="#3b5998"/><path d="M21.3 17.7h-3v11.1h-4.6V17.7h-2.2v-3.9h2.2v-2.5c0-1.8.9-4.6 4.6-4.6h3.4v3.8h-2.5c-.4 0-1 .2-1 1.1v2.3h3.4l-.3 3.8z" fill="#fff"/></symbol><symbol id="ico-google-plus"><circle id="google-plus-XMLID_30_" cx="17" cy="17" r="17" fill="#dc4e41"/><path d="M5.9 17.8c-.1 2.9 2 5.7 4.7 6.6 2.6.9 5.8.2 7.6-2 1.3-1.6 1.6-3.7 1.4-5.6h-6.7v2.4h4c-.3 1.2-1.1 2.2-2.3 2.7-2.3 1-5.1-.3-5.8-2.7-.9-2.3.5-5 2.9-5.7 1.4-.5 2.9.1 4.1.8l1.8-1.8c-1.4-1.2-3.2-1.9-5-1.7-3.7 0-6.8 3.3-6.7 7zM24 14.7v2h-2v2h2v2h2v-2h2v-2h-2v-2h-2z" fill="#dc4e41"/><path d="M5.9 17.8c-.1-3.6 3-7 6.6-7 1.8-.2 3.6.6 5 1.7-.6.6-1.2 1.3-1.8 1.8-1.2-.7-2.7-1.3-4.1-.8-2.3.7-3.7 3.4-2.9 5.7.7 2.4 3.6 3.7 5.8 2.7 1.2-.4 1.9-1.5 2.3-2.7h-4v-2.4h6.7c.1 2-.2 4-1.4 5.6-1.7 2.2-4.9 2.9-7.6 2-2.6-.9-4.6-3.7-4.6-6.6zM24 14.7h2v2h2v2h-2v2h-2v-2h-2v-2h2v-2z" fill="#fff"/></symbol><symbol viewBox="0 0 18 18" id="ico-icon-facebook"><path d="M13 1h-2.1C8.6 1 7.1 2.5 7.1 4.9v1.8H5c-.2 0-.3.1-.3.3v2.6c0 .3.1.4.3.4h2.1v6.6c0 .2.1.3.3.3h2.7c.2 0 .3-.1.3-.3V10h2.4c.2 0 .3-.1.3-.3V7.1c0-.1 0-.2-.1-.2-.1-.1-.1-.1-.2-.1h-2.4V5.2c0-.7.2-1.1 1.1-1.1h1.4c.2 0 .3-.1.3-.3V1.3c.1-.2 0-.3-.2-.3z" fill="#bbb"/></symbol><symbol viewBox="0 0 18 18" id="ico-icon-twitter"><path d="M6.8 16c-.7 0-1.5-.1-2.3-.2-1.3-.2-2.7-.9-3.1-1.1l-1-.6 1.1-.4c1.2-.4 1.9-.6 2.8-1-.9-.4-1.6-1.2-1.9-2.2l-.2-.8h.2c-.2-.1-.4-.3-.5-.5-.4-.7-.6-1.5-.6-2.2v-.7l.4.2c-.2-.3-.3-.7-.4-1-.2-.9 0-1.8.4-2.6l.4-.6.5.6c1.5 1.7 3.4 2.7 5.7 3-.1-.6 0-1.2.2-1.8S9.2 3 9.8 2.6c.7-.4 1.6-.6 2.4-.6.9.1 1.7.4 2.3 1 .3-.1.5-.2.9-.3.2-.1.4-.2.7-.2l1-.3-.6 1.8h1.1l-.6.8s0 .1-.1.1c0 .1-.1.2-1 1.3-.2.3-.3.7-.3 1 .1 1.5-.1 2.8-.5 4-.4 1.1-1 2-1.9 2.8-1 .9-2.4 1.6-3.9 1.9-.8 0-1.6.1-2.5.1z" fill="#bbb"/></symbol><symbol viewBox="0 0 18 18" id="ico-icon-yt"><path d="M18 5.4c0-1.5-1.2-2.7-2.7-2.7H2.7C1.2 2.7 0 3.9 0 5.4v7.2c0 1.5 1.2 2.7 2.7 2.7h12.6c1.5 0 2.7-1.2 2.7-2.7V5.4zM7.2 12V5.3l5.1 3.4L7.2 12z" fill="#bbb"/></symbol><symbol id="ico-linkedin"><circle cx="17" cy="17" r="17" fill="#007ab9"/><path d="M27.2 18.4v7h-4.1v-6.5c0-1.6-.6-2.8-2.1-2.8-1.1 0-1.8.8-2.1 1.5-.1.3-.1.6-.1 1v6.8h-4.1s.1-11.1 0-12.2h4.1v1.7c.5-.8 1.5-2 3.7-2 2.7 0 4.7 1.7 4.7 5.5zM10.5 7.3c-1.4 0-2.3.9-2.3 2.1 0 1.2.9 2.1 2.2 2.1 1.4 0 2.3-.9 2.3-2.1.1-1.2-.8-2.1-2.2-2.1zm-2 18.1h4.1V13.2H8.5v12.2z" fill="#fff"/></symbol><symbol id="ico-twitter"><circle cx="17" cy="17" r="17" fill="#55acee"/><path d="M27.4 12.2c-.7.3-1.5.5-2.3.6.8-.5 1.5-1.3 1.8-2.2-.8.5-1.7.8-2.6 1-.7-.8-1.8-1.3-3-1.3-2.2 0-4.1 1.8-4.1 4.1 0 .3 0 .6.1.9-3.3-.1-6.3-1.8-8.3-4.2-.4.6-.5 1.3-.5 2 0 1.4.7 2.7 1.8 3.4-.7 0-1.3-.2-1.8-.5v.1c0 2 1.4 3.6 3.3 4-.3.1-.7.2-1.1.2-.3 0-.5 0-.8-.1.5 1.6 2 2.8 3.8 2.8-1.4 1.1-3.2 1.7-5.1 1.7-.3 0-.6 0-1-.1 1.8 1.2 3.9 1.8 6.2 1.8 7.5 0 11.6-6.2 11.6-11.6v-.5c.8-.5 1.5-1.3 2-2.1z" fill="#fff"/></symbol></svg><header class="full-bg site-head"> <div class="container site-head--wrapper"> <div class="site-head--logo"> <a href="https://toolset.com/">Toolset</a> </div> <div class="site-head--navigation-wrapper site-head--navigation"> <nav class="site-head--navigation" aria-label="Horizontal" role="navigation"> <ul id="head-menu-main" class="menu"><li id="menu-item-239706" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-239706"><a href="https://toolset.com/documentation/">Documentation</a> <ul class="sub-menu"> <li id="menu-item-2425137" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2425137"><a href="https://toolset.com/documentation/">Getting Started</a></li> <li id="menu-item-2425191" class="menu-item menu-item-type-post_type_archive menu-item-object-course-lesson menu-item-2425191"><a href="https://toolset.com/course-lesson/">Lessons</a></li> <li id="menu-item-2425141" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2425141"><a href="https://toolset.com/documentation/legacy-features/">Legacy Features</a></li> <li id="menu-item-2425139" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2425139"><a href="https://toolset.com/documentation/programmer-reference/">Programmer Information</a></li> <li id="menu-item-2010357" class="menu-item menu-item-type-post_type_archive menu-item-object-glossary menu-item-2010357"><a href="https://toolset.com/glossary/">Toolset and WordPress Glossary</a></li> <li id="menu-item-2010359" class="menu-item menu-item-type-post_type_archive menu-item-object-block-item menu-item-2010359"><a href="https://toolset.com/block-item/">Toolset's Blocks Library</a></li> <li id="menu-item-2425189" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-2425189"><a href="https://toolset.com/faq/">Frequently Asked Questions</a></li> </ul> </li> <li id="menu-item-573303" class="menu-item menu-item-type-post_type_archive menu-item-object-showcase menu-item-573303"><a href="https://toolset.com/showcase/">Showcase</a></li> <li id="menu-item-1776897" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-1776897"><a href="/forums/forum/professional-support/">Support</a> <ul class="sub-menu"> <li id="menu-item-505285" class="menu-item menu-item-type-post_type menu-item-object-forum menu-item-505285"><a href="https://toolset.com/forums/forum/professional-support/">Technical Support</a></li> <li id="menu-item-586059" class="menu-item menu-item-type-post_type_archive menu-item-object-contractors menu-item-586059"><a href="https://toolset.com/contractors/">Toolset Contractors</a></li> </ul> </li> <li id="menu-item-239728" class="menu-item menu-item-type-post_type menu-item-object-page current_page_parent menu-item-239728"><a title="Blog" href="https://toolset.com/blog/">Blog</a></li> </ul> </nav> <a class="btn" title="Buy Now" href="https://toolset.com/buy/">Buy Now</a> </div> <nav class="site-head--navigation site-head--navigation-right"> <a class="btn" title="Buy Now" href="https://toolset.com/buy/">Buy Now</a> <a class="search-toggle search-icon" id="search-toggle" title="Search "></a> <form id="searchform" class="form-inline collapse" role="search" method="get" action="https://toolset.com/"> <label class="sr-only" for="s">Search for:</label> <input type="search" name="s" id="s" class="form-control" value=" "> <input type="hidden" name="lang" value="en"> <button type="submit" class="btn btn-default">Search</button> </form> <div id="account-menu-wrapper" style="visibility: hidden" class="otgs-dynamic-frontend-elements-unhide"> <ul id="head-menu-account" class="menu"><li id="menu-item-2006147" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2006147"><a href="https://toolset.com/log-in/">Log In</a></li> </ul> </div> <div class="site-head--navigation-mobile"> <div data-toggle="collapse" data-target=".site-head--navigation-wrapper">Menu <div class="hamburger-icon"><div></div></div></div> </div> </nav> </div> </header> <div class="container"> <div class="breadcrumbs"> <a href="https://toolset.com/">Home</a> » <a href="https://toolset.com/course-lesson/">Course lessons</a> » Using Post Reference Field to Set-Up One-to-Many Relationships in WordPress </div> <h1 class="page-title">Using Post Reference Field to Set-Up One-to-Many Relationships in WordPress</h1> <div class="row lesson-row"> <div class="col-sm-8 entry-content"> <div class="video-entry"> <p class="lead">The Post Reference field allows to link from one post to another. Under the hood, this field creates a one-to-many relationship, which allows you to display the related posts.</p> <div class="video-content"> <div class="tces-js-style-encoded" style="display:none;">LnRiLWZpZWxke21hcmdpbi1ib3R0b206MC43NmVtfS50Yi1maWVsZC0tbGVmdHt0ZXh0LWFsaWduOmxlZnR9LnRiLWZpZWxkLS1jZW50ZXJ7dGV4dC1hbGlnbjpjZW50ZXJ9LnRiLWZpZWxkLS1yaWdodHt0ZXh0LWFsaWduOnJpZ2h0fS50Yi1maWVsZF9fc2t5cGVfcHJldmlld3twYWRkaW5nOjEwcHggMjBweDtib3JkZXItcmFkaXVzOjNweDtjb2xvcjojZmZmO2JhY2tncm91bmQ6IzAwYWZlZTtkaXNwbGF5OmlubGluZS1ibG9ja311bC5nbGlkZV9fc2xpZGVze21hcmdpbjowfQ==</div><script class="tces-js-style-to-head">toolsetCommonEs.styleToHead()</script><div class="tces-js-style-encoded" style="display:none;">LnRiLWNvbnRhaW5lciAudGItY29udGFpbmVyLWlubmVye3dpZHRoOjEwMCU7bWFyZ2luOjAgYXV0b30gLndwLWJsb2NrLXRvb2xzZXQtYmxvY2tzLWNvbnRhaW5lci50Yi1jb250YWluZXJbZGF0YS10b29sc2V0LWJsb2Nrcy1jb250YWluZXI9ImQyYzRlYjkyZGIxZTM5ODQ5NmZiYWE0MjRkNmViNzAxIl0geyBwYWRkaW5nOiAwcHggMHB4IDQwcHggMHB4OyB9IC50Yi1jb250YWluZXIgLnRiLWNvbnRhaW5lci1pbm5lcnt3aWR0aDoxMDAlO21hcmdpbjowIGF1dG99IC53cC1ibG9jay10b29sc2V0LWJsb2Nrcy1jb250YWluZXIudGItY29udGFpbmVyW2RhdGEtdG9vbHNldC1ibG9ja3MtY29udGFpbmVyPSI5NmRkNDkzYzE4MzkzYjY2YWQ3N2UzZmEyMjdhNzIyNyJdIHsgcGFkZGluZzogNDBweCAwcHggMHB4IDBweDsgfSAudGItZmllbGRbZGF0YS10b29sc2V0LWJsb2Nrcy1maWVsZD0iN2Q5MzVhZGE3ODIxM2MwOWQ1NDczZjM3YjI5M2I0ZDciXSB7IHRleHQtYWxpZ246IGxlZnQ7IH0gLnRiLWZpZWxkW2RhdGEtdG9vbHNldC1ibG9ja3MtZmllbGQ9IjdkOTM1YWRhNzgyMTNjMDlkNTQ3M2YzN2IyOTNiNGQ3Il0gYSB7IHRleHQtZGVjb3JhdGlvbjogbm9uZTsgfSAgLnRiLWltYWdle3Bvc2l0aW9uOnJlbGF0aXZlO3RyYW5zaXRpb246dHJhbnNmb3JtIDAuMjVzIGVhc2V9LndwLWJsb2NrLWltYWdlIC50Yi1pbWFnZS5hbGlnbmNlbnRlcnttYXJnaW4tbGVmdDphdXRvO21hcmdpbi1yaWdodDphdXRvfS50Yi1pbWFnZSBpbWd7bWF4LXdpZHRoOjEwMCU7aGVpZ2h0OmF1dG87d2lkdGg6YXV0bzt0cmFuc2l0aW9uOnRyYW5zZm9ybSAwLjI1cyBlYXNlfS50Yi1pbWFnZSAudGItaW1hZ2UtY2FwdGlvbi1maXQtdG8taW1hZ2V7ZGlzcGxheTp0YWJsZX0udGItaW1hZ2UgLnRiLWltYWdlLWNhcHRpb24tZml0LXRvLWltYWdlIC50Yi1pbWFnZS1jYXB0aW9ue2Rpc3BsYXk6dGFibGUtY2FwdGlvbjtjYXB0aW9uLXNpZGU6Ym90dG9tfSAudGItaW1hZ2VbZGF0YS10b29sc2V0LWJsb2Nrcy1pbWFnZT0iZjU2NThkZTMwZWNjZGJlOGU3YTRmMDZkNzljNWJmN2IiXSB7IG1heC13aWR0aDogMTAwJTsgfSAudGItaW1hZ2VbZGF0YS10b29sc2V0LWJsb2Nrcy1pbWFnZT0iZjU2NThkZTMwZWNjZGJlOGU3YTRmMDZkNzljNWJmN2IiXSBpbWcgeyBib3JkZXI6IDFweCBzb2xpZCByZ2JhKCAyMjIsIDIyMiwgMjIyLCAxICk7IH0gQG1lZGlhIG9ubHkgc2NyZWVuIGFuZCAobWF4LXdpZHRoOiA5OTFweCkgeyAudGItY29udGFpbmVyIC50Yi1jb250YWluZXItaW5uZXJ7d2lkdGg6MTAwJTttYXJnaW46MCBhdXRvfS50Yi1jb250YWluZXIgLnRiLWNvbnRhaW5lci1pbm5lcnt3aWR0aDoxMDAlO21hcmdpbjowIGF1dG99LnRiLWZpZWxkW2RhdGEtdG9vbHNldC1ibG9ja3MtZmllbGQ9IjdkOTM1YWRhNzgyMTNjMDlkNTQ3M2YzN2IyOTNiNGQ3Il0gYSB7IHRleHQtZGVjb3JhdGlvbjogbm9uZTsgfSAgLnRiLWltYWdle3Bvc2l0aW9uOnJlbGF0aXZlO3RyYW5zaXRpb246dHJhbnNmb3JtIDAuMjVzIGVhc2V9LndwLWJsb2NrLWltYWdlIC50Yi1pbWFnZS5hbGlnbmNlbnRlcnttYXJnaW4tbGVmdDphdXRvO21hcmdpbi1yaWdodDphdXRvfS50Yi1pbWFnZSBpbWd7bWF4LXdpZHRoOjEwMCU7aGVpZ2h0OmF1dG87d2lkdGg6YXV0bzt0cmFuc2l0aW9uOnRyYW5zZm9ybSAwLjI1cyBlYXNlfS50Yi1pbWFnZSAudGItaW1hZ2UtY2FwdGlvbi1maXQtdG8taW1hZ2V7ZGlzcGxheTp0YWJsZX0udGItaW1hZ2UgLnRiLWltYWdlLWNhcHRpb24tZml0LXRvLWltYWdlIC50Yi1pbWFnZS1jYXB0aW9ue2Rpc3BsYXk6dGFibGUtY2FwdGlvbjtjYXB0aW9uLXNpZGU6Ym90dG9tfSB9IEBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1heC13aWR0aDogNTk5cHgpIHsgLnRiLWNvbnRhaW5lciAudGItY29udGFpbmVyLWlubmVye3dpZHRoOjEwMCU7bWFyZ2luOjAgYXV0b30udGItY29udGFpbmVyIC50Yi1jb250YWluZXItaW5uZXJ7d2lkdGg6MTAwJTttYXJnaW46MCBhdXRvfS50Yi1maWVsZFtkYXRhLXRvb2xzZXQtYmxvY2tzLWZpZWxkPSI3ZDkzNWFkYTc4MjEzYzA5ZDU0NzNmMzdiMjkzYjRkNyJdIGEgeyB0ZXh0LWRlY29yYXRpb246IG5vbmU7IH0gIC50Yi1pbWFnZXtwb3NpdGlvbjpyZWxhdGl2ZTt0cmFuc2l0aW9uOnRyYW5zZm9ybSAwLjI1cyBlYXNlfS53cC1ibG9jay1pbWFnZSAudGItaW1hZ2UuYWxpZ25jZW50ZXJ7bWFyZ2luLWxlZnQ6YXV0bzttYXJnaW4tcmlnaHQ6YXV0b30udGItaW1hZ2UgaW1ne21heC13aWR0aDoxMDAlO2hlaWdodDphdXRvO3dpZHRoOmF1dG87dHJhbnNpdGlvbjp0cmFuc2Zvcm0gMC4yNXMgZWFzZX0udGItaW1hZ2UgLnRiLWltYWdlLWNhcHRpb24tZml0LXRvLWltYWdle2Rpc3BsYXk6dGFibGV9LnRiLWltYWdlIC50Yi1pbWFnZS1jYXB0aW9uLWZpdC10by1pbWFnZSAudGItaW1hZ2UtY2FwdGlvbntkaXNwbGF5OnRhYmxlLWNhcHRpb247Y2FwdGlvbi1zaWRlOmJvdHRvbX0gfSA=</div><script class="tces-js-style-to-head">toolsetCommonEs.styleToHead()</script><div class="tb-field" data-toolset-blocks-field="7d935ada78213c09d5473f37b293b4d7"><div class="tces-js-style-encoded" style="display:none;">LnRiLWltYWdle3Bvc2l0aW9uOnJlbGF0aXZlO3RyYW5zaXRpb246dHJhbnNmb3JtIDAuMjVzIGVhc2V9LndwLWJsb2NrLWltYWdlIC50Yi1pbWFnZS5hbGlnbmNlbnRlcnttYXJnaW4tbGVmdDphdXRvO21hcmdpbi1yaWdodDphdXRvfS50Yi1pbWFnZSBpbWd7bWF4LXdpZHRoOjEwMCU7aGVpZ2h0OmF1dG87d2lkdGg6YXV0bzt0cmFuc2l0aW9uOnRyYW5zZm9ybSAwLjI1cyBlYXNlfS50Yi1pbWFnZSAudGItaW1hZ2UtY2FwdGlvbi1maXQtdG8taW1hZ2V7ZGlzcGxheTp0YWJsZX0udGItaW1hZ2UgLnRiLWltYWdlLWNhcHRpb24tZml0LXRvLWltYWdlIC50Yi1pbWFnZS1jYXB0aW9ue2Rpc3BsYXk6dGFibGUtY2FwdGlvbjtjYXB0aW9uLXNpZGU6Ym90dG9tfSAudGItaW1hZ2VbZGF0YS10b29sc2V0LWJsb2Nrcy1pbWFnZT0iZjU2NThkZTMwZWNjZGJlOGU3YTRmMDZkNzljNWJmN2IiXSB7IG1heC13aWR0aDogMTAwJTsgfSAudGItaW1hZ2VbZGF0YS10b29sc2V0LWJsb2Nrcy1pbWFnZT0iZjU2NThkZTMwZWNjZGJlOGU3YTRmMDZkNzljNWJmN2IiXSBpbWcgeyBib3JkZXI6IDFweCBzb2xpZCByZ2JhKCAyMjIsIDIyMiwgMjIyLCAxICk7IH0gQG1lZGlhIG9ubHkgc2NyZWVuIGFuZCAobWF4LXdpZHRoOiA5OTFweCkgeyAudGItaW1hZ2V7cG9zaXRpb246cmVsYXRpdmU7dHJhbnNpdGlvbjp0cmFuc2Zvcm0gMC4yNXMgZWFzZX0ud3AtYmxvY2staW1hZ2UgLnRiLWltYWdlLmFsaWduY2VudGVye21hcmdpbi1sZWZ0OmF1dG87bWFyZ2luLXJpZ2h0OmF1dG99LnRiLWltYWdlIGltZ3ttYXgtd2lkdGg6MTAwJTtoZWlnaHQ6YXV0bzt3aWR0aDphdXRvO3RyYW5zaXRpb246dHJhbnNmb3JtIDAuMjVzIGVhc2V9LnRiLWltYWdlIC50Yi1pbWFnZS1jYXB0aW9uLWZpdC10by1pbWFnZXtkaXNwbGF5OnRhYmxlfS50Yi1pbWFnZSAudGItaW1hZ2UtY2FwdGlvbi1maXQtdG8taW1hZ2UgLnRiLWltYWdlLWNhcHRpb257ZGlzcGxheTp0YWJsZS1jYXB0aW9uO2NhcHRpb24tc2lkZTpib3R0b219IH0gQG1lZGlhIG9ubHkgc2NyZWVuIGFuZCAobWF4LXdpZHRoOiA1OTlweCkgeyAudGItaW1hZ2V7cG9zaXRpb246cmVsYXRpdmU7dHJhbnNpdGlvbjp0cmFuc2Zvcm0gMC4yNXMgZWFzZX0ud3AtYmxvY2staW1hZ2UgLnRiLWltYWdlLmFsaWduY2VudGVye21hcmdpbi1sZWZ0OmF1dG87bWFyZ2luLXJpZ2h0OmF1dG99LnRiLWltYWdlIGltZ3ttYXgtd2lkdGg6MTAwJTtoZWlnaHQ6YXV0bzt3aWR0aDphdXRvO3RyYW5zaXRpb246dHJhbnNmb3JtIDAuMjVzIGVhc2V9LnRiLWltYWdlIC50Yi1pbWFnZS1jYXB0aW9uLWZpdC10by1pbWFnZXtkaXNwbGF5OnRhYmxlfS50Yi1pbWFnZSAudGItaW1hZ2UtY2FwdGlvbi1maXQtdG8taW1hZ2UgLnRiLWltYWdlLWNhcHRpb257ZGlzcGxheTp0YWJsZS1jYXB0aW9uO2NhcHRpb24tc2lkZTpib3R0b219IH0g</div><script class="tces-js-style-to-head">toolsetCommonEs.styleToHead()</script><p>The Post Reference field allows you to connect only one post of one type to one post of the other type. This means, you’re pointing from the “many” side to the “one” side.</p><p>For example, you might connect an “room” post to a “house” post (each room can belong to one house). When you display a room, you can also easily display fields that belong to the house.</p><h2 class="wp-block-heading" id="adding-a-post-reference-field">Steps for Adding a Post Reference Field<a class="anchorlink" href="#adding-a-post-reference-field"></a></h2><ol class="wp-block-list"><li>Go to the <strong>Toolset </strong>→ <strong>Custom Fields </strong>page and create a group of fields, or edit an existing one.</li><li>Click on the <strong>Add New Field </strong>button and select the <strong>Post Reference </strong>field. You can only add a post reference field to a group assigned to one particular post type.</li><li>Select a type of post that the post reference field will connect to.</li></ol><p>When you now edit any post of the selected type, there will be a box allowing you to connect it to any post of that related type.</p><h2 class="wp-block-heading" id="displaying-fields-that-belong-to-the-related-post">Displaying Fields that Belong to the Related Post<a class="anchorlink" href="#displaying-fields-that-belong-to-the-related-post"></a></h2><p>You can use the Post Reference field to display related post’s fields anywhere you need to. This could be a template for single posts or an archive page.</p><ol class="wp-block-list"><li>Edit a Content Template or an archive page.</li><li>Use any Toolset block you want to display fields coming from the related posts.</li><li>In the right sidebar, select to use a dynamic source and in the <strong>Post Source </strong>dropdown, select the <strong>Parent: <post type name> </strong>option. Post type name is the name of the post type you connected using the Post Reference field.</li><li>Finally, select the exact field you want to display.</li></ol><h2 class="wp-block-heading" id="repeating-post-reference-fields">Repeating Post Reference Fields<a class="anchorlink" href="#repeating-post-reference-fields"></a></h2><p>Sometimes you might want to connect one post to multiple posts by making your Post Reference field into a repeating one.</p><p>However, a repeating Post Reference field implies creating a many-to-many relationship. For example, an event could be connected to many announcements and single announcement could be connected to many events.</p><p>This is why Toolset doesn’t allow you to make the post reference field directly repeatable. Instead, it offers to automatically turn your post reference field into a post relationship.</p><p>To do this, edit the field group containing your Post Reference field, edit that field, and click the <strong>I need this field to repeat </strong>link.</p><div class="wp-block-image"><figure class=" tb-image tb-image-media aligncenter" data-toolset-blocks-image="f5658de30eccdbe8e7a4f06d79c5bf7b"><a href="https://toolset.com/wp-content/uploads/2020/08/toolset-types-post-reference-field-repeatable-option.png"><img width="500" height="497" decoding="async" src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20500%20497'%3E%3C/svg%3E" alt="" class="wp-image-1731715" data-lazy-src="https://toolset.com/wp-content/uploads/2020/08/toolset-types-post-reference-field-repeatable-option-500x497.png"><noscript><img width="500" height="497" decoding="async" loading="lazy" src="https://toolset.com/wp-content/uploads/2020/08/toolset-types-post-reference-field-repeatable-option-500x497.png" alt="" class="wp-image-1731715"></noscript></a><div class="tb-image-caption"><figcaption>Selecting a post type to connect the Post Reference field to</figcaption></div></figure></div><p>A pop-up dialog appears, suggesting you need to use a many-to-many relationship. Click on the <strong>Preview change </strong>button to get an overview of the necessary changes in the relationship.</p><p>If everything looks good, click the <strong>Make this change </strong>button. Toolset will automatically create the necessary post relationship and remove the Post Reference field from the group.</p><div class="tb-fields-and-text" data-toolset-blocks-fields-and-text="360284519b991feb492b582c7d84725f">That’s it, you will now be able to connect as many posts as you want and <a href="https://toolset.com/course-lesson/displaying-related-posts/">display information from posts in a relationship</a>.</div></div><div class="wp-block-toolset-blocks-container tb-container" data-toolset-blocks-container="96dd493c18393b66ad77e3fa227a7227"><div class="tb-fields-and-text" data-toolset-blocks-fields-and-text="360284519b991feb492b582c7d84725f"><div id="wpv-view-layout-1586419-CATTRf6c45a526b85be6b280ef43d8e1281a9" class="js-wpv-view-layout js-wpv-layout-responsive js-wpv-view-layout-1586419-CATTRf6c45a526b85be6b280ef43d8e1281a9" data-viewnumber="1586419-CATTRf6c45a526b85be6b280ef43d8e1281a9" data-pagination='{"id":1586419,"query":"normal","type":"disabled","effect":"fade","duration":"500","speed":"5","pause_on_hover":"disabled","stop_rollover":"false","cache_pages":"enabled","preload_images":"enabled","preload_pages":"enabled","preload_reach":"1","spinner":"builtin","spinner_image":"https://testing-toolset-danijel-e-2020-03-06-b786c7.otgs.work/wp-content/plugins/wp-views/embedded/res/img/ajax-loader.gif","callback_next":"","manage_history":"disabled","has_controls_in_form":"disabled","infinite_tolerance":"0","max_pages":0,"page":1,"base_permalink":"/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/?wpv_view_count=1586419-CATTRf6c45a526b85be6b280ef43d8e1281a9&wpv_paged=WPV_PAGE_NUM","loop":{"type":"","name":"","data":[],"id":0}}' data-permalink="/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/?wpv_view_count=1586419-CATTRf6c45a526b85be6b280ef43d8e1281a9"> </div></div></div><div class="wp-block-toolset-blocks-container tb-container" data-toolset-blocks-container="d2c4eb92db1e398496fbaa424d6eb701"><div class="tb-fields-and-text" data-toolset-blocks-fields-and-text="360284519b991feb492b582c7d84725f"><div id="wpv-view-layout-1771997-CATTRf6c45a526b85be6b280ef43d8e1281a9" class="js-wpv-view-layout js-wpv-layout-responsive js-wpv-view-layout-1771997-CATTRf6c45a526b85be6b280ef43d8e1281a9" data-viewnumber="1771997-CATTRf6c45a526b85be6b280ef43d8e1281a9" data-pagination='{"id":1771997,"query":"normal","type":"disabled","effect":"fade","duration":500,"speed":5,"pause_on_hover":"disabled","stop_rollover":"false","cache_pages":"enabled","preload_images":"enabled","preload_pages":"enabled","preload_reach":1,"spinner":"builtin","spinner_image":"https://toolset.com/wp-content/plugins/wp-views/embedded/res/img/ajax-loader.gif","callback_next":"","manage_history":"disabled","has_controls_in_form":"disabled","infinite_tolerance":"0","max_pages":0,"page":1,"base_permalink":"/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/?wpv_view_count=1771997-CATTRf6c45a526b85be6b280ef43d8e1281a9&wpv_paged=WPV_PAGE_NUM","loop":{"type":"","name":"","data":[],"id":0}}' data-permalink="/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/?wpv_view_count=1771997-CATTRf6c45a526b85be6b280ef43d8e1281a9"> </div></div><div class="tb-fields-and-text" data-toolset-blocks-fields-and-text="360284519b991feb492b582c7d84725f"> <div id="wpv-view-layout-1586421-CATTRd524ff51839479b59ba195e21ab5b3d1TCPID1727291" class="js-wpv-view-layout js-wpv-layout-responsive js-wpv-view-layout-1586421-CATTRd524ff51839479b59ba195e21ab5b3d1TCPID1727291" data-viewnumber="1586421-CATTRd524ff51839479b59ba195e21ab5b3d1TCPID1727291" data-pagination='{"id":1586421,"query":"normal","type":"disabled","effect":"fade","duration":"500","speed":"5","pause_on_hover":"disabled","stop_rollover":"false","cache_pages":"enabled","preload_images":"enabled","preload_pages":"enabled","preload_reach":"1","spinner":"builtin","spinner_image":"https://testing-toolset-danijel-e-2020-03-06-b786c7.otgs.work/wp-content/plugins/wp-views/embedded/res/img/ajax-loader.gif","callback_next":"","manage_history":"disabled","has_controls_in_form":"disabled","infinite_tolerance":"0","max_pages":0,"page":1,"base_permalink":"/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/?wpv_view_count=1586421-CATTRd524ff51839479b59ba195e21ab5b3d1TCPID1727291&wpv_paged=WPV_PAGE_NUM","loop":{"type":"","name":"","data":[],"id":0}}' data-permalink="/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/?wpv_view_count=1586421-CATTRd524ff51839479b59ba195e21ab5b3d1TCPID1727291"> <h2 id="related-topics">Related topics<a class="anchorlink" href="#related-topics"></a></h2> <ul class="wpv-loop js-wpv-loop"> <li><a href="https://toolset.com/course-lesson/how-to-create-custom-searches-and-relationships-for-users/">How to Create Custom Searches and Relationships for Users</a></li><li><a href="https://toolset.com/course-lesson/using-custom-fields-vs-taxonomy/">Using Custom Fields vs. Taxonomy</a></li><li><a href="https://toolset.com/course-lesson/conditionally-display-custom-fields-in-wordpress-backend/">Conditionally Display Custom Fields in WordPress Backend</a></li><li><a href="https://toolset.com/course-lesson/adding-a-custom-taxonomy-to-woocommerce-products/">Adding a Custom Taxonomy to WooCommerce Products</a></li><li><a href="https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/">Selecting Parent Posts when Using Forms to Create Child Items</a></li><li class="show-all-related-topics"><a href="#">Show all related topics...</a></li> <li class="hide"><a href="https://toolset.com/course-lesson/how-to-set-up-post-relationships-in-wordpress/">How to set up Post Relationships in WordPress</a></li><li class="hide"><a href="https://toolset.com/course-lesson/front-end-relationship-forms-for-connecting-posts/">Front-End Forms for Connecting Related Posts</a></li><li class="hide"><a href="https://toolset.com/course-lesson/displaying-related-posts/">Displaying Related Posts</a></li><li class="hide"><a href="https://toolset.com/course-lesson/what-are-post-relationships-and-how-they-work/">What Are Post Relationships and How They Work</a></li><li class="hide"><a href="https://toolset.com/course-lesson/many-to-many-post-relationships/">Many-to-Many Post Relationships in WordPress</a></li><li class="hide"><a href="https://toolset.com/course-lesson/how-content-is-displayed-in-wordpress/">How Content is Displayed</a></li><li class="hide"><a href="https://toolset.com/course-lesson/adding-custom-posts/">Adding Custom Posts</a></li><li class="hide"><a href="https://toolset.com/course-lesson/when-and-why-you-should-use-custom-types/">When and Why You Should Use Custom Types</a></li><li class="hide"><a href="https://toolset.com/course-lesson/creating-a-custom-taxonomy/">Creating a Custom Taxonomy</a></li><li class="hide"><a href="https://toolset.com/course-lesson/creating-custom-fields/">Creating Custom Fields</a></li><li class="hide"><a href="https://toolset.com/course-lesson/creating-a-custom-post-type/">Creating a Custom Post Type</a></li><li class="hide"><a href="https://toolset.com/course-lesson/what-are-custom-types-and-how-they-work/">What Are Custom Types and How They Work</a></li><li class="hide"><a href="https://toolset.com/course-lesson/convert-existing-custom-types-and-fields-to-types-control/">Convert existing custom types and fields to Types control</a></li><li class="hide"><a href="https://toolset.com/course-lesson/limitations-on-html-content-in-custom-fields/">Limitations on HTML Content in Post Fields</a></li> </ul> <br> </div> </div></div> </div> </div> <div class="documentation-feedback"> <a href="https://toolset.com/documentation/your-documentation-feedback/?lesson=1727291"><img width="22" height="20" class="img-svg" src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2022%2020'%3E%3C/svg%3E" alt="" data-lazy-src="https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/img/svg/training/feedback.svg" /><noscript><img width="22" height="20" class="img-svg" src="https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/img/svg/training/feedback.svg" alt="" /></noscript>Send feedback to our documentation team</a> </div> </div> <div class="col-sm-2"></div> </div> </div> <footer class="full-bg site-footer"> <div class="container"> <div class="site-footer__links"> <div class="site-footer__links-col"> <h3>About Toolset</h3> <ul id="menu-footer-column-1" class="menu" role="menu"><li id="menu-item-2016035" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2016035"><a href="https://toolset.com/home/how-youll-build-sites-with-toolset/">Site Building with Toolset</a></li> <li id="menu-item-1394141" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1394141"><a href="https://toolset.com/home/toolset-components/">Toolset Components</a></li> <li id="menu-item-1765217" class="menu-item menu-item-type-post_type_archive menu-item-object-block-item menu-item-1765217"><a href="https://toolset.com/block-item/">Toolset's Blocks Library</a></li> <li id="menu-item-1394179" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1394179"><a href="https://toolset.com/home/comparing-toolset-to-free-and-paid-alternatives/">Toolset vs. Alternatives</a></li> </ul> </div> <div class="site-footer__links-col"> <h3>Resources</h3> <ul id="menu-footer-column-2" class="menu" role="menu"><li id="menu-item-1394155" class="menu-item menu-item-type-post_type menu-item-object-page current_page_parent menu-item-1394155"><a href="https://toolset.com/blog/">Blog</a></li> <li id="menu-item-1394181" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1394181"><a href="/showcase/">Showcase</a></li> <li id="menu-item-1654919" class="menu-item menu-item-type-post_type_archive menu-item-object-mention menu-item-1654919"><a href="https://toolset.com/mention/">Press mentions</a></li> <li id="menu-item-1862509" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1862509"><a href="https://toolset.com/home/press-resources/">Press Resources</a></li> </ul> </div> <div class="site-footer__links-col"> <h3>Company</h3> <ul id="menu-footer-column-3" class="menu" role="menu"><li id="menu-item-1394159" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1394159"><a href="https://toolset.com/home/about-us/">About Us</a></li> <li id="menu-item-1394153" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1394153"><a href="https://toolset.com/home/contact-us/">Contact Us</a></li> <li id="menu-item-1394167" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1394167"><a href="https://toolset.com/privacy-policy-and-gdpr-compliance/">Privacy Policy</a></li> <li id="menu-item-1394165" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1394165"><a href="https://www.onthegosystems.com/jobs/">Jobs</a></li> </ul> </div> <div class="site-footer__links-col"> <h3>Features</h3> <ul id="menu-footer-column-4" class="menu" role="menu"><li id="menu-item-2073235" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2073235"><a href="https://toolset.com/features/how-to-build-advanced-sites-with-gutenberg-and-no-coding/">How to Build Advanced Sites With Gutenberg and No Coding</a></li> <li id="menu-item-2073237" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2073237"><a href="https://toolset.com/features/maps-for-advanced-directory-sites/">Maps for Advanced Directory Sites</a></li> <li id="menu-item-2073233" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2073233"><a href="https://toolset.com/features/shortcodes-in-gutenberg/">Shortcodes in Gutenberg – Dynamic Sources</a></li> </ul> </div> <div class="site-footer__links-col"> <h3>Documentation</h3> <ul id="menu-footer-column-5" class="menu" role="menu"><li id="menu-item-2073245" class="menu-item menu-item-type-post_type menu-item-object-course menu-item-2073245"><a href="https://toolset.com/course/custom-types-in-wordpress/">Custom Post Types and Fields</a></li> <li id="menu-item-2073257" class="menu-item menu-item-type-post_type menu-item-object-course menu-item-2073257"><a href="https://toolset.com/course/wordpress-directory-and-classifieds-sites/">Directory and Classifieds Sites</a></li> <li id="menu-item-2073255" class="menu-item menu-item-type-post_type menu-item-object-course menu-item-2073255"><a href="https://toolset.com/course/wordpress-real-estate-sites/">Real Estate Sites</a></li> <li id="menu-item-2073251" class="menu-item menu-item-type-post_type menu-item-object-course menu-item-2073251"><a href="https://toolset.com/course/custom-woocommerce-sites/">WooCommerce Sites</a></li> <li id="menu-item-2073249" class="menu-item menu-item-type-post_type menu-item-object-course menu-item-2073249"><a href="https://toolset.com/course/custom-business-sites-with-dynamic-content/">Business Sites</a></li> <li id="menu-item-2073253" class="menu-item menu-item-type-post_type menu-item-object-course menu-item-2073253"><a href="https://toolset.com/course/wordpress-membership-sites/">Membership Sites</a></li> </ul> </div> </div> <div class="site-footer__copyright"> <div class="site-footer__copyright-col"> </div> <div class="site-footer__copyright-col text-center"> <div class="site-footer__copyright-col-logo"> <a href="https://www.onthegosystems.com/" target="_blank"><img src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20260%2031'%3E%3C/svg%3E" width="260" height="31" alt="OnTheGoSystems Limited" data-lazy-src="https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/img/svg/logo-footer-otgs.svg" /><noscript><img src="https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/img/svg/logo-footer-otgs.svg" width="260" height="31" alt="OnTheGoSystems Limited" /></noscript><span class="screen-reader-text"> (opens in a new window)</span></a> </div> <p>Copyright 2024<br />OnTheGoSystems Limited</p> </div> <div class="site-footer__copyright-col text-right"> <div class="site-footer__copyright-col-social"> <a target="_blank" rel="nofollow" class="no-lightbox" href="https://www.youtube.com/channel/UCkXU96V638K0OQ-297dL2qA"><svg role="none"><use xlink:href="#ico-icon-yt"></use></svg><span class="screen-reader-text"> (opens in a new window)</span></a> <a target="_blank" rel="nofollow" href="https://twitter.com/ToolsetPlugins"><svg role="none"><use xlink:href="#ico-icon-twitter"></use></svg><span class="screen-reader-text"> (opens in a new window)</span></a> <a target="_blank" rel="nofollow" href="https://www.facebook.com/toolsetplugins/"><svg role="none"><use xlink:href="#ico-icon-facebook"></use></svg><span class="screen-reader-text"> (opens in a new window)</span></a> </div> </div> </div> </div> </footer> <script type="text/javascript"> const wpvViewHead = document.getElementsByTagName( "head" )[ 0 ]; const wpvViewExtraCss = document.createElement( "style" ); wpvViewExtraCss.textContent = '/* ----------------------------------------- *//* View slug: related-lessons - start *//* ----------------------------------------- */.show-all-related-topics:before { display: none !important;}.show-all-related-topics { padding-left: 0 !important; margin-top: 10px;}.show-all-related-topics a { display: inline-block; color: #ed793e;}/* ----------------------------------------- *//* View slug: related-lessons - end *//* ----------------------------------------- */<!--[if IE 7]><style>.wpv-pagination { *zoom: 1; }</style><![endif]-->'; wpvViewHead.appendChild( wpvViewExtraCss ); </script> <script type="text/javascript" id="bbp-swap-no-js-body-class"> document.body.className = document.body.className.replace( 'bbp-no-js', 'bbp-js' ); </script> <div id="wonderpluginlightbox_options" data-skinsfoldername="skins/default/" data-jsfolder="https://toolset.com/wp-content/plugins/wonderplugin-lightbox/engine/" data-autoslide="false" data-showall="false" data-slideinterval="5000" data-showtimer="true" data-timerposition="bottom" data-timerheight="2" data-timercolor="#dc572e" data-timeropacity="1" data-navarrowspos="inside" data-closepos="outside" data-enteranimation="" data-exitanimation="" data-showplaybutton="false" data-alwaysshownavarrows="false" data-bordersize="8" data-showtitleprefix="true" data-responsive="true" data-fullscreenmode="false" data-fullscreentextoutside="true" data-closeonoverlay="true" data-videohidecontrols="false" data-mutevideo="false" data-nativehtml5controls="false" data-enableclick="false" data-enablespacekey="false" data-initvimeo="true" data-inityoutube="true" data-titlestyle="bottom" data-imagepercentage="75" data-enabletouchswipe="true" data-supportdynamiccontent="false" data-autoplay="true" data-html5player="true" data-overlaybgcolor="#000" data-overlayopacity="0.8" data-defaultvideovolume="1" data-bgcolor="#FFF" data-borderradius="0" data-thumbwidth="96" data-thumbheight="72" data-thumbtopmargin="12" data-thumbbottommargin="12" data-barheight="48" data-showtitle="true" data-titleprefix="%NUM / %TOTAL" data-titlebottomcss="{color:#333; font-size:14px; overflow:hidden; text-align:left;}" data-showdescription="true" data-descriptionbottomcss="{color:#333; font-size:12px; overflow:hidden; text-align:left; margin:4px 0px 0px; padding: 0px;}" data-titleinsidecss="color:#333; font-size:16px; overflow:hidden; text-align:left;" data-descriptioninsidecss="color:#333; font-size:12px; overflow:hidden; text-align:left; margin:4px 0px 0px; padding: 0px;" data-titleoutsidecss="color:#fff; font-size:18px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:center; margin: 8px;" data-descriptionoutsidecss="color:#fff; font-size:14px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:center; margin:8px; padding: 0px;" data-videobgcolor="#000" data-html5videoposter="" data-responsivebarheight="false" data-smallscreenheight="415" data-barheightonsmallheight="64" data-notkeepratioonsmallheight="false" data-showsocial="false" data-socialposition="position:absolute;top:100%;right:0;" data-socialpositionsmallscreen="position:absolute;top:100%;right:0;left:0;" data-socialdirection="horizontal" data-socialbuttonsize="32" data-socialbuttonfontsize="18" data-socialrotateeffect="true" data-showfacebook="true" data-showtwitter="true" data-showpinterest="true" data-bordertopmargin="48" data-shownavigation="true" data-navbgcolor="rgba(0,0,0,0.2)" data-shownavcontrol="true" data-hidenavdefault="false" data-hidenavigationonmobile="false" data-hidenavigationonipad="false" data-ga4account="" data-googleanalyticsaccount="" data-wonderplugin-lightbox-options="cd556491d7" data-_wp_http_referer="/wp-admin/admin.php?page=wonderplugin_lightbox_show_options" style="display:none;"></div> <script type="text/javascript"> var wpTemplateDirectory = 'https://toolset.com/wp-content/themes/wp-types-bootstrap-theme'; </script> <script type='text/javascript'> (function () { var c = document.body.className; c = c.replace(/woocommerce-no-js/, 'woocommerce-js'); document.body.className = c; })(); </script> <link data-minify="1" rel='stylesheet' id='shCoreDefault-css' href='https://toolset.com/wp-content/cache/min/1/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/styles/shCoreDefault.css?ver=1730703414' type='text/css' media='all' /> <link rel='stylesheet' id='codesnip-style-css' data-oprm-on-first-user-action data-oprm-id=codeSnips data-oprm-src='https://toolset.com/wp-content/plugins/code-snips/res/css/codesnipcss.css?ver=6.6.2' type='text/css' media='all' /> <link rel='stylesheet' id='wpml-legacy-horizontal-list-0-css' href='https://toolset.com/wp-content/plugins/sitepress-multilingual-cms/templates/language-switchers/legacy-list-horizontal/style.min.css?ver=1' type='text/css' media='all' /> <script type="text/javascript" id="bbps-free-consultation-js-js-extra"> /* <![CDATA[ */ var the_free_consultation_js = {"free_consultation_tag_anchor":"#free_consultation_section_anchor","homepage_url":"https:\/\/toolset.com\/","toolset_kinds_translatable_text":"You need to indicate what kind of site the client is building.","toolset_fit_translatable_text":"You need to indicate if this project fits with Toolset.","frontend_cred_no_form_content":"Please provide your message here.*","frontend_cred_no_firstname":"Please provide your first name.*","frontend_cred_no_lastname":"Please provide your last name.*","frontend_cred_no_email":"Please provide valid email.*","is_toolset_types_landing_page":"no","we_are_on_account":"no","toolset_fits_kinds_object":"no","free_consultation_forum":"no"}; /* ]]> */ </script> <script type="text/javascript" id="ga_affiliate_tracking_script-js-extra"> /* <![CDATA[ */ var ga_affiliate_tracking_object = {"site_name":"Toolset"}; /* ]]> */ </script> <script data-minify="1" type="text/javascript" src="https://toolset.com/wp-content/cache/min/1/wp-content/plugins/icl-mpp/modules/affiliate/res/js/scripts.js?ver=1730703370" id="ga_affiliate_tracking_script-js" data-rocket-defer defer></script> <script type="text/javascript" src="https://toolset.com/wp-includes/js/dist/vendor/react.min.js?ver=18.3.1" id="react-js"></script> <script type="module" src="https://toolset.com/wp-content/plugins/icl-mpp/modules/HTMX/assets/js/alpine.min.js?ver=3.13.0" defer="defer"></script><script type="text/javascript" id="otgs-dynamic-frontend-elements-loader-js-extra"> /* <![CDATA[ */ var otgs_dynamic_frontend_l10n = {"ajaxurl":"https:\/\/toolset.com\/wp-admin\/admin-ajax.php","ajax_action":"otgs_dynamic_frontend_elements_load","dynamic_elements":[{"key":"toolset-account-menu_en","selector":"#account-menu-wrapper"}],"can_detect_visitors":"1","logged_in_cookie":"otgs\/mpp\/is-user-logged-in","lang_code":"en","debug":""}; /* ]]> */ </script> <script data-minify="1" type="text/javascript" src="https://toolset.com/wp-content/cache/min/1/wp-content/plugins/otgs-dynamic-frontend-elements/public/main.bundle.js?ver=1730703370" id="otgs-dynamic-frontend-elements-loader-js" data-rocket-defer defer></script> <script type="text/javascript" id="wp-postratings-js-extra"> /* <![CDATA[ */ var ratingsL10n = {"plugin_url":"https:\/\/toolset.com\/wp-content\/plugins\/wp-postratings","ajax_url":"https:\/\/toolset.com\/wp-admin\/admin-ajax.php","text_wait":"Please rate only 1 item at a time.","image":"stars_flat_png","image_ext":"png","max":"5","show_loading":"0","show_fading":"1","custom":"0"}; var ratings_mouseover_image=new Image();ratings_mouseover_image.src="https://toolset.com/wp-content/plugins/wp-postratings/images/stars_flat_png/rating_over.png";; /* ]]> */ </script> <script data-minify="1" type="text/javascript" src="https://toolset.com/wp-content/cache/min/1/wp-content/plugins/wp-postratings/js/postratings-js.js?ver=1730703370" id="wp-postratings-js" data-rocket-defer defer></script> <script data-minify="1" type="text/javascript" src="https://toolset.com/wp-content/cache/min/1/wp-content/plugins/duracelltomi-google-tag-manager/dist/js/gtm4wp-form-move-tracker.js?ver=1730703370" id="gtm4wp-form-move-tracker-js" data-rocket-defer defer></script> <script data-minify="1" type="text/javascript" src="https://toolset.com/wp-content/cache/min/1/wp-content/plugins/duracelltomi-google-tag-manager/dist/js/gtm4wp-ecommerce-generic.js?ver=1730703370" id="gtm4wp-ecommerce-generic-js" data-rocket-defer defer></script> <script data-minify="1" type="text/javascript" src="https://toolset.com/wp-content/cache/min/1/wp-content/plugins/duracelltomi-google-tag-manager/dist/js/gtm4wp-woocommerce.js?ver=1730703370" id="gtm4wp-woocommerce-js" data-rocket-defer defer></script> <script type="text/javascript" id="thickbox-js-extra"> /* <![CDATA[ */ var thickboxL10n = {"next":"Next >","prev":"< Prev","image":"Image","of":"of","close":"Close","noiframes":"This feature requires inline frames. You have iframes disabled or your browser does not support them.","loadingAnimation":"https:\/\/toolset.com\/wp-includes\/js\/thickbox\/loadingAnimation.gif"}; /* ]]> */ </script> <script type="text/javascript" data-oprm-manual data-oprm-id=themeBootstrap data-oprm-src="https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/bootstrap/js/bootstrap.min.js?ver=4.0.1" id="bootstrap-js"></script> <script type="text/javascript" id="toolset-main-js-extra"> /* <![CDATA[ */ var toolsetMainStrings = {"ajaxNonce":"b6b2653aa8"}; /* ]]> */ </script> <script type="text/javascript" src="https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/js/user-scripts.min.js?ver=4.0.1" id="toolset-main-js" data-rocket-defer defer></script> <script type="text/javascript" id="mediaelement-js-extra"> /* <![CDATA[ */ var _wpmejsSettings = {"pluginPath":"\/wp-includes\/js\/mediaelement\/","classPrefix":"mejs-","stretching":"responsive","audioShortcodeLibrary":"mediaelement","videoShortcodeLibrary":"mediaelement"}; /* ]]> */ </script> <script type="text/javascript" data-oprm-on-first-user-action data-oprm-id=themeCourses data-oprm-src="https://toolset.com/wp-content/themes/wp-types-bootstrap-theme/js/training-courses.min.js?ver=4.0.1" id="training-courses-js"></script> <script data-minify="1" type="text/javascript" src="https://toolset.com/wp-content/cache/min/1/wp-content/plugins/layouts/resources/js/ddl-tabs-cell-frontend.js?ver=1730703370" id="ddl-tabs-scripts-js" data-rocket-defer defer></script> <script type="text/javascript" src="https://toolset.com/wp-includes/js/jquery/ui/core.min.js?ver=1.13.3" id="jquery-ui-core-js" data-rocket-defer defer></script> <script type="text/javascript" src="https://toolset.com/wp-includes/js/underscore.min.js?ver=1.13.4" id="underscore-js" data-rocket-defer defer></script> <script type="text/javascript" src="https://toolset.com/wp-includes/js/jquery/suggest.min.js?ver=1.1-20110113" id="suggest-js" data-rocket-defer defer></script> <script type="text/javascript" id="wptoolset-field-date-js-extra"> /* <![CDATA[ */ var wptDateData = {"buttonImage":"https:\/\/toolset.com\/wp-content\/plugins\/cred-frontend-editor\/vendor\/toolset\/toolset-common\/toolset-forms\/images\/calendar.gif","buttonText":"Select date","dateFormat":"MM d, yy","dateFormatPhp":"F j, Y","dateFormatNote":"Input format: F j, Y","yearMin":"1583","yearMax":"3000","ajaxurl":"https:\/\/toolset.com\/wp-admin\/admin-ajax.php","readonly":"This is a read-only date input","readonly_image":"https:\/\/toolset.com\/wp-content\/plugins\/cred-frontend-editor\/vendor\/toolset\/toolset-common\/toolset-forms\/images\/calendar-readonly.gif","datepicker_style_url":"https:\/\/toolset.com\/wp-content\/plugins\/cred-frontend-editor\/vendor\/toolset\/toolset-common\/toolset-forms\/css\/wpt-jquery-ui\/jquery-ui-1.11.4.custom.css"}; /* ]]> */ </script> <script type="text/javascript" src="https://toolset.com/wp-includes/js/jquery/ui/mouse.min.js?ver=1.13.3" id="jquery-ui-mouse-js" data-rocket-defer defer></script> <script type="text/javascript" src="https://toolset.com/wp-includes/js/jquery/ui/slider.min.js?ver=1.13.3" id="jquery-ui-slider-js" data-rocket-defer defer></script> <script data-minify="1" type="text/javascript" src="https://toolset.com/wp-content/cache/min/1/wp-includes/js/jquery/jquery.ui.touch-punch.js?ver=1730703543" id="jquery-touch-punch-js" data-rocket-defer defer></script> <script type="text/javascript" id="wp-util-js-extra"> /* <![CDATA[ */ var _wpUtilSettings = {"ajax":{"url":"\/wp-admin\/admin-ajax.php"}}; /* ]]> */ </script> <script type="text/javascript" src="https://toolset.com/wp-includes/js/wp-util.min.js?ver=6.6.2" id="wp-util-js" data-rocket-defer defer></script> <script type="text/javascript" src="https://toolset.com/wp-includes/js/backbone.min.js?ver=1.5.0" id="backbone-js" data-rocket-defer defer></script> <script type="text/javascript" id="views-blocks-frontend-js-extra"> /* <![CDATA[ */ var wpv_pagination_local = {"front_ajaxurl":"https:\/\/toolset.com\/wp-admin\/admin-ajax.php","calendar_image":"https:\/\/toolset.com\/wp-content\/plugins\/wp-views\/embedded\/res\/img\/calendar.gif","calendar_text":"Select date","datepicker_min_date":null,"datepicker_max_date":null,"datepicker_min_year":"1582","datepicker_max_year":"3000","resize_debounce_tolerance":"100","datepicker_style_url":"https:\/\/toolset.com\/wp-content\/plugins\/cred-frontend-editor\/vendor\/toolset\/toolset-common\/toolset-forms\/css\/wpt-jquery-ui\/jquery-ui-1.11.4.custom.css","wpmlLang":"en"}; /* ]]> */ </script> <script data-minify="1" type="text/javascript" src="https://toolset.com/wp-content/cache/min/1/wp-content/plugins/wp-views/public/js/views-frontend.js?ver=1730703543" id="views-blocks-frontend-js" data-rocket-defer defer></script> <script type="text/javascript"> //----------------------------------------- // View slug: related-lessons - start //----------------------------------------- jQuery(function($) { $( ".show-all-related-topics a" ).click(function(e) { e.preventDefault(); $(this).parent().hide(); $(this).parents('ul').find('li').removeClass('hide'); }); }); //----------------------------------------- // View slug: related-lessons - end //----------------------------------------- </script> <script>window.lazyLoadOptions=[{elements_selector:"img[data-lazy-src],.rocket-lazyload,iframe[data-lazy-src]",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,callback_loaded:function(element){if(element.tagName==="IFRAME"&&element.dataset.rocketLazyload=="fitvidscompatible"){if(element.classList.contains("lazyloaded")){if(typeof window.jQuery!="undefined"){if(jQuery.fn.fitVids){jQuery(element).parent().fitVids()}}}}}},{elements_selector:".rocket-lazyload",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,}];window.addEventListener('LazyLoad::Initialized',function(e){var lazyLoadInstance=e.detail.instance;if(window.MutationObserver){var observer=new MutationObserver(function(mutations){var image_count=0;var iframe_count=0;var rocketlazy_count=0;mutations.forEach(function(mutation){for(var i=0;i<mutation.addedNodes.length;i++){if(typeof mutation.addedNodes[i].getElementsByTagName!=='function'){continue} if(typeof mutation.addedNodes[i].getElementsByClassName!=='function'){continue} images=mutation.addedNodes[i].getElementsByTagName('img');is_image=mutation.addedNodes[i].tagName=="IMG";iframes=mutation.addedNodes[i].getElementsByTagName('iframe');is_iframe=mutation.addedNodes[i].tagName=="IFRAME";rocket_lazy=mutation.addedNodes[i].getElementsByClassName('rocket-lazyload');image_count+=images.length;iframe_count+=iframes.length;rocketlazy_count+=rocket_lazy.length;if(is_image){image_count+=1} if(is_iframe){iframe_count+=1}}});if(image_count>0||iframe_count>0||rocketlazy_count>0){lazyLoadInstance.update()}});var b=document.getElementsByTagName("body")[0];var config={childList:!0,subtree:!0};observer.observe(b,config)}},!1)</script><script data-no-minify="1" async src="https://toolset.com/wp-content/plugins/wp-rocket/assets/js/lazyload/17.8.3/lazyload.min.js"></script> </body> </html> <!-- This website is like a Rocket, isn't it? Performance optimized by WP Rocket. Learn more: https://wp-rocket.me -->