- Create entries: In WP Admin → Deco Type Details → Add New
- Title: something human-friendly (e.g., “DTG”)
- Decoration Key:
dtg(ordtf,embroidery, etc.) - Fill Shipping Speed and Deco Info sections.
- Insert the shortcode on your product template (or anywhere):
- Auto-detect on product pages:
[deco_details] - Force a type (for non-product pages):
[deco_details type="dtf"] - Hide the title:
[deco_details show_title="no"]
- Auto-detect on product pages:
- Matching logic:
- Reads the product’s
decoration_typemeta (array-safe). - Normalizes and maps values like “Direct to film”, “DTF Film”, “screen print” →
dtf,screen-print, etc. - Finds the Deco Type Detail by Decoration Key meta first; falls back to slug/title search.
- Reads the product’s
On product templates (auto-detect):
[[deco_shipping]][[deco_info]]
Anywhere with an explicit type:
[[deco_shipping type="dtf"]][[deco_info type="embroidery"]]
[deco_shipping] | Shipping Speed content (no title) | ✅ Yes | [deco_shipping] |
[deco_info] | Deco Info content (no title) | ✅ Yes | [deco_info type="dtf"] |