{"id":375204,"date":"2026-09-25T13:09:18","date_gmt":"2026-09-25T13:09:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/khalaf-shortcodes-cpt-pages-and-template\/"},"modified":"2026-09-25T13:08:47","modified_gmt":"2026-09-25T13:08:47","slug":"khalaf-shortcodes-cpt-pages-template","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/khalaf-shortcodes-cpt-pages-template\/","author":20519826,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.2","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"KHALAF Shortcodes CPT, Pages, Template","header_author":"Ahmed Khalaf","header_description":"Generate copy-ready shortcodes for Pages, Posts, Products, any Custom Post Type, Templates and Taxonomies (categories, tags, product categories) to reuse content anywhere.","assets_banners_color":"","last_updated":"2026-09-25 13:08:47","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.youtube.com\/@kalam-fe-wordpress","header_author_uri":"https:\/\/profiles.wordpress.org\/khalaf22\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":37,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"khalaf22","date":"2026-09-25 13:08:47","revision":3713081}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3713095,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3713095,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[2007,1794,3468,80,4516],"plugin_category":[43],"plugin_contributors":[282401],"plugin_business_model":[],"class_list":["post-375204","plugin","type-plugin","status-publish","hentry","plugin_tags-cpt","plugin_tags-custom-post-type","plugin_tags-post-content","plugin_tags-shortcode","plugin_tags-templates","plugin_category-customization","plugin_contributors-khalaf22","plugin_committers-khalaf22"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/khalaf-shortcodes-cpt-pages-template\/assets\/icon-128x128.png?rev=3713095","icon_2x":"https:\/\/ps.w.org\/khalaf-shortcodes-cpt-pages-template\/assets\/icon-256x256.png?rev=3713095","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>KHALAF Shortcodes CPT, Pages and Template<\/strong> 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).<\/p>\n\n<p>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!<\/p>\n\n<h4>Key Features<\/h4>\n\n<ul>\n<li><strong>Copy-Ready Admin Columns<\/strong>: Instant copy-to-clipboard fields directly inside admin list tables.<\/li>\n<li><strong>Universal Post &amp; Template Shortcode<\/strong>: <code>[khalaf-content id=\"123\"]<\/code> works across pages, posts, WooCommerce products, CPTs, and templates.<\/li>\n<li><strong>Smart Layout Engine<\/strong>: Supports <code>layout=\"auto\"<\/code> (default), <code>full<\/code> (complete article with featured image and metadata), <code>product<\/code> (complete WooCommerce product page), <code>card<\/code> (clean modern card), <code>shop<\/code> (WooCommerce grid), and <code>blog<\/code> (latest posts grid).<\/li>\n<li><strong>Taxonomy Term Shortcode<\/strong>: <code>[khalaf-term id=\"12\" taxonomy=\"category\"]<\/code> outputs term posts grids, term cards, images, titles, or archive links.<\/li>\n<li><strong>Built-in Term Image Support<\/strong>: Adds a lightweight media uploader for category and taxonomy term images, fully compatible with themes and shortcodes.<\/li>\n<li><strong>Performance Optimized<\/strong>: Zero database clutter, assets are loaded on demand only when shortcodes or admin tables are rendered.<\/li>\n<li><strong>Elementor &amp; Page Builder Friendly<\/strong>: Seamlessly renders Elementor templates or page builder layouts when active, with smooth fallback to standard content.<\/li>\n<\/ul>\n\n<h4>Post &amp; Content Shortcode<\/h4>\n\n<pre><code>[khalaf-content id=\"123\"]\n<\/code><\/pre>\n\n<p>The <code>layout<\/code> attribute controls the output presentation:\n* <code>auto<\/code> (default) - Page builder content if present; complete WooCommerce product layout for products; content for pages and templates; styled article for posts.\n* <code>full<\/code> - Featured image, post title, author, date, categories, tags, and full content.\n* <code>product<\/code> - Complete WooCommerce product page (gallery, price, add to cart button, tabs).\n* <code>card<\/code> - Modern styled responsive card.\n* <code>content<\/code> - Raw content only.\n* <code>shop<\/code> - WooCommerce products grid (useful for embedding catalog items).\n* <code>blog<\/code> - Latest posts grid.<\/p>\n\n<p>Other supported attributes: <code>show_title<\/code>, <code>show_image<\/code>, <code>show_meta<\/code> (yes\/no), <code>columns<\/code>, <code>limit<\/code>, <code>orderby<\/code>, <code>order<\/code>.<\/p>\n\n<h4>Taxonomy Term Shortcode<\/h4>\n\n<pre><code>[khalaf-term id=\"12\" taxonomy=\"category\"]\n<\/code><\/pre>\n\n<p>Term attributes:\n* <code>show=\"posts\"<\/code> (default) - Grid of posts\/products associated with this term.\n* <code>show=\"card\"<\/code> - Compact term card (image, name, description, button).\n* <code>show=\"image\"<\/code> - Term image only (<code>size<\/code>, <code>link=\"yes\"<\/code>).\n* <code>show=\"description\"<\/code> - Term description only.\n* <code>show=\"title\"<\/code> - Term name only.\n* <code>show=\"link\"<\/code> - Direct archive link.<\/p>\n\n<h4>Built-in Security<\/h4>\n\n<ul>\n<li><strong>Strict Authorization<\/strong>: Private, draft, and scheduled content is only rendered to logged-in users with appropriate editing permissions.<\/li>\n<li><strong>Password Protection<\/strong>: Password-protected posts are never exposed through shortcodes.<\/li>\n<li><strong>Anti-Recursion Shield<\/strong>: Automatic recursion detection blocks circular inclusions (e.g. Post A calling Post B which calls Post A).<\/li>\n<li><strong>Sanitized &amp; Escaped<\/strong>: All inputs, IDs, attributes, and output markup are strictly sanitized and escaped following WordPress coding standards.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>khalaf-shortcodes-cpt-pages-template<\/code> folder to your <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin via <strong>Plugins \u2192 Installed Plugins<\/strong>.<\/li>\n<li>Open any admin list screen (Pages, Posts, Products, Categories...) and click on the shortcode field to copy it.<\/li>\n<li>Paste the shortcode into any page, post, widget, or page builder block.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20require%20elementor%3F\"><h3>Does this plugin require Elementor?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20woocommerce%20products%20and%20categories%3F\"><h3>Does it work with WooCommerce products and categories?<\/h3><\/dt>\n<dd><p>Yes. Products receive <code>[khalaf-content]<\/code> and product categories receive <code>[khalaf-term taxonomy=\"product_cat\"]<\/code> automatically.<\/p><\/dd>\n<dt id=\"what%20shortcodes%20are%20supported%3F\"><h3>What shortcodes are supported?<\/h3><\/dt>\n<dd><p>The official shortcodes are <code>[khalaf-content]<\/code> and <code>[khalaf-term]<\/code>. Additional aliases such as <code>[khalaf-post]<\/code>, <code>[khalaf-template]<\/code>, and <code>[khalaf-elementor-template]<\/code> are also supported.<\/p><\/dd>\n<dt id=\"why%20does%20a%20password-protected%20post%20output%20nothing%3F\"><h3>Why does a password-protected post output nothing?<\/h3><\/dt>\n<dd><p>Password-protected content is deliberately filtered out to safeguard sensitive data from unauthorized exposure.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial public release on WordPress.org.<\/li>\n<li>Universal <code>[khalaf-content]<\/code> shortcode for pages, posts, CPTs, products, and templates.<\/li>\n<li>Taxonomy term shortcode <code>[khalaf-term]<\/code> with dynamic posts grid and term cards.<\/li>\n<li>One-click copyable admin table columns.<\/li>\n<li>Circular inclusion prevention and permission-based visibility.<\/li>\n<li>Native term image uploader for custom taxonomies.<\/li>\n<\/ul>","raw_excerpt":"Generate copy-ready shortcodes for Pages, Posts, Products, Custom Post Types, Templates and Taxonomies to reuse content anywhere.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/375204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=375204"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/khalaf22"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=375204"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=375204"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=375204"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=375204"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=375204"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=375204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}