[WordPress] 外掛分享: KHALAF Shortcodes CPT, Pages, Template

首頁 › 外掛目錄 › KHALAF Shortcodes CPT, Pages, Template
全新外掛
安裝啟用
—
尚無評分
20 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 7.4+ v1.0.0 上架:2026-09-24

內容簡介

KHALAF Shortcodes CPT, Pages, Template 外掛為 WordPress 控制台中的每個公共文章類型新增可一鍵複製的短碼欄位,方便用戶快速復用內容、模板或檔案網格,提升網站管理效率。

【主要功能】
• 一鍵複製短碼欄位
• 支援多種文章與模板短碼
• 智能佈局引擎,提供多種顯示樣式
• 稅onomies 文章短碼,輸出文章網格
• 內建分類與標籤圖片支援
• 性能優化,無資料庫雜訊

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「KHALAF Shortcodes CPT, Pages, Template」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

KHALAF Shortcodes CPT, Pages and Template adds a dedicated, one-click copyable shortcode column (“Shortcode (KHALAF)”) to your WordPress admin tables for every public post type (Pages, Posts, WooCommerce Products, Custom Post Types, Templates) and every public taxonomy (Categories, Tags, Product Categories, and custom taxonomies).
Simply click on any shortcode field inside your admin tables to copy it instantly to your clipboard and reuse that content, template, or archive grid anywhere on your website!
Key Features

Copy-Ready Admin Columns: Instant copy-to-clipboard fields directly inside admin list tables.
Universal Post & Template Shortcode: [khalaf-content id="123"] works across pages, posts, WooCommerce products, CPTs, and templates.
Smart Layout Engine: Supports layout="auto" (default), full (complete article with featured image and metadata), product (complete WooCommerce product page), card (clean modern card), shop (WooCommerce grid), and blog (latest posts grid).
Taxonomy Term Shortcode: [khalaf-term id="12" taxonomy="category"] outputs term posts grids, term cards, images, titles, or archive links.
Built-in Term Image Support: Adds a lightweight media uploader for category and taxonomy term images, fully compatible with themes and shortcodes.
Performance Optimized: Zero database clutter, assets are loaded on demand only when shortcodes or admin tables are rendered.
Elementor & Page Builder Friendly: Seamlessly renders Elementor templates or page builder layouts when active, with smooth fallback to standard content.

Post & Content Shortcode
[khalaf-content id="123"]

The layout attribute controls the output presentation:
* auto (default) – Page builder content if present; complete WooCommerce product layout for products; content for pages and templates; styled article for posts.
* full – Featured image, post title, author, date, categories, tags, and full content.
* product – Complete WooCommerce product page (gallery, price, add to cart button, tabs).
* card – Modern styled responsive card.
* content – Raw content only.
* shop – WooCommerce products grid (useful for embedding catalog items).
* blog – Latest posts grid.
Other supported attributes: show_title, show_image, show_meta (yes/no), columns, limit, orderby, order.
Taxonomy Term Shortcode
[khalaf-term id="12" taxonomy="category"]

Term attributes:
* show="posts" (default) – Grid of posts/products associated with this term.
* show="card" – Compact term card (image, name, description, button).
* show="image" – Term image only (size, link="yes").
* show="description" – Term description only.
* show="title" – Term name only.
* show="link" – Direct archive link.
Built-in Security

Strict Authorization: Private, draft, and scheduled content is only rendered to logged-in users with appropriate editing permissions.
Password Protection: Password-protected posts are never exposed through shortcodes.
Anti-Recursion Shield: Automatic recursion detection blocks circular inclusions (e.g. Post A calling Post B which calls Post A).
Sanitized & Escaped: All inputs, IDs, attributes, and output markup are strictly sanitized and escaped following WordPress coding standards.

延伸相關外掛

文章
Filter
Mastodon