| 开发者 | khalaf22 |
|---|---|
| 更新时间 | 2026年9月25日 21:13 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[khalaf-content id="123"] works across pages, posts, WooCommerce products, CPTs, and templates.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).[khalaf-term id="12" taxonomy="category"] outputs term posts grids, term cards, images, titles, or archive links.[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.[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.khalaf-shortcodes-cpt-pages-template folder to your /wp-content/plugins/ directory.No. The plugin is completely independent and works natively with the WordPress Block Editor (Gutenberg), classic editor, or any page builder. If Elementor is active, it also supports Elementor templates.
Yes. Products receive [khalaf-content] and product categories receive [khalaf-term taxonomy="product_cat"] automatically.
The official shortcodes are [khalaf-content] and [khalaf-term]. Additional aliases such as [khalaf-post], [khalaf-template], and [khalaf-elementor-template] are also supported.
Password-protected content is deliberately filtered out to safeguard sensitive data from unauthorized exposure.
[khalaf-content] shortcode for pages, posts, CPTs, products, and templates.[khalaf-term] with dynamic posts grid and term cards.