1"use strict";(globalThis.webpackChunkbuilderius=globalThis.webpackChunkbuilderius||[]).push([[789],{8453:(e,t,s)=>{s.d(t,{R:()=>l,x:()=>a});var n=s(6540);const i={},o=n.createContext(i);function l(e){const t=n.useContext(o);return n.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:l(e.components),n.createElement(o.Provider,{value:t},e.children)}},8792:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>r,contentTitle:()=>a,default:()=>d,frontMatter:()=>l,metadata:()=>n,toc:()=>c});const n=JSON.parse('{"id":"templates/template-single-cpt","title":"Single CPT","description":"Custom Post Type Templates are a Pro feature only.","source":"@site/docs/templates/single-cpt.md","sourceDirName":"templates","slug":"/templates/template-single-cpt","permalink":"/docs/templates/template-single-cpt","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"id":"template-single-cpt","title":"Single CPT"},"sidebar":"docs","previous":{"title":"Single Page Template","permalink":"/docs/templates/template-single-page"},"next":{"title":"Single Media Template","permalink":"/docs/templates/template-single-media"}}');var i=s(4848),o=s(8453);const l={id:"template-single-cpt",title:"Single CPT"},a=void 0,r={},c=[{value:"Examples of when this template appears:",id:"examples-of-when-this-template-appears",level:2},{value:"What dynamic data is available:",id:"what-dynamic-data-is-available",level:2},{value:"What you control:",id:"what-you-control",level:2},{value:"Doesn't affect:",id:"doesnt-affect",level:2},{value:"Template Priority: 10",id:"template-priority-10",level:2}];function p(e){const t={a:"a",admonition:"admonition",h2:"h2",li:"li",p:"p",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.admonition,{title:"Pro feature",type:"info",children:(0,i.jsx)(t.p,{children:"Custom Post Type Templates are a Pro feature only."})}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"What it's for:"})," Displaying individual custom post type content - products, events, portfolio items, team members, or any custom content types you've created."]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"When it's used:"})," When someone visits any individual piece of custom content through product links, event details, portfolio views, or direct URLs to custom post type items."]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"What you can design:"})," Specialized layouts tailored to your custom content - product galleries, event details, portfolio showcases, team member profiles, or whatever elements suit your custom content type."]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"Appears when:"})," Any individual custom post type content is visited (everything except regular Posts and Pages)."]}),"\n",(0,i.jsx)(t.h2,{id:"examples-of-when-this-template-appears",children:"Examples of when this template appears:"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Someone clicks on a product from your shop page and views the individual product details."}),"\n",(0,i.jsx)(t.li,{children:"That's your Single Custom Post Type template."}),"\n",(0,i.jsx)(t.li,{children:"Or when someone clicks on an event from your events listing and sees the full event information - they see your Single Custom Post Type template."}),"\n"]}),"\n",(0,i.jsx)(t.h2,{id:"what-dynamic-data-is-available",children:"What dynamic data is available:"}),"\n",(0,i.jsx)(t.p,{children:"You have access to the current custom post's complete data"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"title"}),"\n",(0,i.jsx)(t.li,{children:"content"}),"\n",(0,i.jsx)(t.li,{children:"featured image"}),"\n",(0,i.jsx)(t.li,{children:"custom fields (ACF/MetaBox)"}),"\n",(0,i.jsx)(t.li,{children:"metadata"}),"\n",(0,i.jsx)(t.li,{children:"taxonomy terms (categories, tags, custom taxonomies)"}),"\n",(0,i.jsx)(t.li,{children:"post type specific data"}),"\n"]}),"\n",(0,i.jsx)(t.h2,{id:"what-you-control",children:"What you control:"}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"Everything on individual custom post type pages"})," - specialized headers, content presentation, image galleries, related item suggestions, custom forms. You design the entire experience for people viewing your custom content."]}),"\n",(0,i.jsx)(t.h2,{id:"doesnt-affect",children:"Doesn't affect:"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"Regular blog posts"})," - those use Single Post templates"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"Static pages"})," (About, Contact) - those use Single Page templates"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"Archive pages"})," for custom post types - those need Archive templates"]}),"\n"]}),"\n",(0,i.jsx)(t.h2,{id:"template-priority-10",children:"Template Priority: 10"}),"\n",(0,i.jsxs)(t.p,{children:["This template has default ",(0,i.jsx)(t.strong,{children:"priority 10"})," in Builderius template hierarchy. This is the highest priority for content templates, ensuring your custom post type designs always take precedence over general templates like All Singulars (90) or Entire Website (100)."]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"Note:"})," When you design a page or post directly (without using templates), that design always wins regardless of priority numbers. ",(0,i.jsx)(t.a,{href:"edit-a-page",children:"Learn more about designing pages directly \u2192"})]})]})}function d(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(p,{...e})}):p(e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.