{"id":386379,"date":"2026-10-22T18:25:52","date_gmt":"2026-10-22T18:25:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/pkart-product-attributes-display\/"},"modified":"2026-10-22T18:51:41","modified_gmt":"2026-10-22T18:51:41","slug":"pkart-product-attributes-display","status":"publish","type":"plugin","link":"https:\/\/gl.wordpress.org\/plugins\/pkart-product-attributes-display\/","author":23552391,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.3","requires":"6.5","requires_php":"7.4","requires_plugins":null,"header_name":"PKart Product Attributes Display","header_author":"Pluginskart","header_description":"Displays WooCommerce product attributes inside product blocks.","assets_banners_color":"9c97ab","last_updated":"2026-10-22 18:51:41","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/pluginskart\/pkart-product-attributes-display","header_author_uri":"https:\/\/pluginskart.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":77,"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":"pluginskart","date":"2026-10-22 18:51:41","revision":3760400}},"upgrade_notice":{"1.0.0":"<p>Initial release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3760386,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3760386,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3760386,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3760386,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":{"pkart\/shop-attributes":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"pkart\/shop-attributes","version":"1.0.0","title":"PKart Product Attributes Display","category":"woocommerce-product-elements","icon":"tag","description":"Displays a selected WooCommerce product attribute inside a product block.","keywords":["product","attribute","attributes","woocommerce","display"],"textdomain":"pkart-product-attributes-display","editorScript":"file:.\/index.js","editorStyle":"file:.\/index.css","style":"file:.\/style-index.css","supports":{"html":false},"usesContext":["postId","query","queryId"],"attributes":{"attributeSlug":{"type":"string","default":""},"attributeName":{"type":"string","default":""},"prefix":{"type":"string","default":""},"suffix":{"type":"string","default":""}}}},"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3760386,"resolution":"1","location":"assets","locale":"","width":1600,"height":840},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3760386,"resolution":"2","location":"assets","locale":"","width":1600,"height":800},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3760386,"resolution":"3","location":"assets","locale":"","width":1600,"height":1000}},"screenshots":{"1":"Block variations for each global WooCommerce attribute in the Site Editor, with Attribute slug, Prefix, and Suffix settings in the block sidebar.","2":"Product attribute values on the front end, displayed as comma-separated lists with prefix and suffix text.","3":"Global and custom attributes assigned to a product in the WooCommerce Attributes tab, ready to be displayed by the blocks."}},"plugin_section":[],"plugin_tags":[4121,66595,220229,139732,286],"plugin_category":[45],"plugin_contributors":[276302],"plugin_business_model":[],"class_list":["post-386379","plugin","type-plugin","status-publish","hentry","plugin_tags-blocks","plugin_tags-product-attributes","plugin_tags-product-collection","plugin_tags-site-editor","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-pluginskart","plugin_committers-pluginskart"],"banners":{"banner":"https:\/\/ps.w.org\/pkart-product-attributes-display\/assets\/banner-772x250.png?rev=3760386","banner_2x":"https:\/\/ps.w.org\/pkart-product-attributes-display\/assets\/banner-1544x500.png?rev=3760386","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/pkart-product-attributes-display\/assets\/icon-128x128.png?rev=3760386","icon_2x":"https:\/\/ps.w.org\/pkart-product-attributes-display\/assets\/icon-256x256.png?rev=3760386","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/pkart-product-attributes-display\/assets\/screenshot-1.png?rev=3760386","caption":"Block variations for each global WooCommerce attribute in the Site Editor, with Attribute slug, Prefix, and Suffix settings in the block sidebar."},{"src":"https:\/\/ps.w.org\/pkart-product-attributes-display\/assets\/screenshot-2.png?rev=3760386","caption":"Product attribute values on the front end, displayed as comma-separated lists with prefix and suffix text."},{"src":"https:\/\/ps.w.org\/pkart-product-attributes-display\/assets\/screenshot-3.png?rev=3760386","caption":"Global and custom attributes assigned to a product in the WooCommerce Attributes tab, ready to be displayed by the blocks."}],"raw_content":"<!--section=description-->\n<p><strong>PKart Product Attributes Display<\/strong> adds a lightweight block that shows the value of any WooCommerce product attribute, right where you want it in your block theme.<\/p>\n\n<p>By default, WooCommerce only lists attributes in the \"Additional information\" tab. With this plugin you can place individual attributes, such as <em>Color: Walnut, Natural Oak, Black<\/em> or <em>Width: 60, 90, 120 cm<\/em>, directly under the product title or price, inside product grids, or anywhere else in the Site Editor.<\/p>\n\n<p>Every global attribute you create under <strong>Products \u2192 Attributes<\/strong> automatically appears in the block inserter as its own block, named after the attribute. Insert it, optionally add a prefix and suffix, and you're done.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li><strong>One block per attribute.<\/strong> A block variation is created automatically for every global WooCommerce attribute (Color, Width, Height, Material, \u2026).<\/li>\n<li><strong>Global and custom attributes.<\/strong> Works with taxonomy-based global attributes and product-level custom attributes.<\/li>\n<li><strong>Prefix and suffix.<\/strong> Add labels and units, such as <code>Width:<\/code> and <code>cm<\/code>.<\/li>\n<li><strong>Multiple values.<\/strong> Displays multiple values as a clean, comma-separated list.<\/li>\n<li><strong>Works where products live.<\/strong> Use it in the Single Product template, the Product Collection block, and any other block that provides product context.<\/li>\n<li><strong>Hides itself when empty.<\/strong> Nothing is output for products that don't have a value for the selected attribute, so there are no empty labels.<\/li>\n<li><strong>Easy to style.<\/strong> Prefix, value, and suffix are wrapped in their own CSS classes.<\/li>\n<li><strong>Lightweight.<\/strong> No settings page, no custom database tables, and no front-end JavaScript.<\/li>\n<li><strong>Compatible with modern WooCommerce.<\/strong> Declares compatibility with High-Performance Order Storage (HPOS) and the Cart and Checkout blocks.<\/li>\n<\/ul>\n\n<h4>How it works<\/h4>\n\n<ol>\n<li>Create or reuse attributes under <strong>Products \u2192 Attributes<\/strong>, or add custom attributes to individual products.<\/li>\n<li>Assign attribute values to your products.<\/li>\n<li>Open <strong>Appearance \u2192 Editor<\/strong> and edit the Single Product template, or any template containing a Product Collection block.<\/li>\n<li>Search the block inserter for your attribute's name (for example, \"Width\") and insert it.<\/li>\n<li>Add an optional prefix and suffix in the block settings sidebar.<\/li>\n<\/ol>\n\n<h4>Requirements<\/h4>\n\n<ul>\n<li>WordPress 6.5 or later<\/li>\n<li>WooCommerce 8.0 or later<\/li>\n<li>PHP 7.4 or later<\/li>\n<li>A block theme (or a theme that supports block templates)<\/li>\n<\/ul>\n\n<!--section=installation-->\n<h4>Automatic installation<\/h4>\n\n<ol>\n<li>Make sure WooCommerce is installed and activated.<\/li>\n<li>In your WordPress dashboard, go to <strong>Plugins \u2192 Add New Plugin<\/strong>.<\/li>\n<li>Search for \"PKart Product Attributes Display\".<\/li>\n<li>Click <strong>Install Now<\/strong>, then <strong>Activate<\/strong>.<\/li>\n<\/ol>\n\n<h4>Manual installation<\/h4>\n\n<ol>\n<li>Download the plugin ZIP file.<\/li>\n<li>Go to <strong>Plugins \u2192 Add New Plugin \u2192 Upload Plugin<\/strong> and upload the ZIP file, or extract it and upload the <code>pkart-product-attributes-display<\/code> folder to <code>\/wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate the plugin from <strong>Plugins \u2192 Installed Plugins<\/strong>.<\/li>\n<\/ol>\n\n<h4>After activation<\/h4>\n\n<ol>\n<li>Go to <strong>Appearance \u2192 Editor \u2192 Templates<\/strong> and open the Single Product template, or a template that contains a Product Collection block.<\/li>\n<li>Search the block inserter for an attribute name, such as \"Color\", and insert it inside the product area.<\/li>\n<li>In the block settings sidebar, adjust the <strong>Attribute slug<\/strong>, <strong>Prefix<\/strong>, and <strong>Suffix<\/strong> if needed.<\/li>\n<li>Save the template.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20require%20woocommerce%3F\"><h3>Does this plugin require WooCommerce?<\/h3><\/dt>\n<dd><p>Yes. WooCommerce must be installed and active.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20classic%20themes%3F\"><h3>Does it work with classic themes?<\/h3><\/dt>\n<dd><p>The plugin provides a block, so it needs a theme that supports block templates, such as Twenty Twenty-Four or Twenty Twenty-Five. It can also be used in any block that provides product context.<\/p><\/dd>\n<dt id=\"where%20can%20i%20use%20the%20block%3F\"><h3>Where can I use the block?<\/h3><\/dt>\n<dd><p>Anywhere a product is available as block context: the Single Product template, inside the Product Collection block's product template, and similar product blocks. Outside of a product context, the block outputs nothing.<\/p><\/dd>\n<dt id=\"my%20attribute%20does%20not%20appear%20in%20the%20block%20inserter.%20why%3F\"><h3>My attribute does not appear in the block inserter. Why?<\/h3><\/dt>\n<dd><p>Automatic blocks are created only for <strong>global<\/strong> attributes, which are managed under <strong>Products \u2192 Attributes<\/strong>. Create the attribute there and it will appear in the inserter, searchable by its name.<\/p><\/dd>\n<dt id=\"how%20do%20i%20display%20a%20custom%20%28product-level%29%20attribute%3F\"><h3>How do I display a custom (product-level) attribute?<\/h3><\/dt>\n<dd><p>Insert any attribute block, then change its <strong>Attribute slug<\/strong> in the block settings to the name of your custom attribute, in lowercase with spaces replaced by hyphens. For example, a custom attribute named \"Fabric Type\" uses the slug <code>fabric-type<\/code>, and \"Thickness\" uses <code>thickness<\/code>.<\/p><\/dd>\n<dt id=\"what%20should%20i%20enter%20as%20the%20attribute%20slug%20for%20a%20global%20attribute%3F\"><h3>What should I enter as the attribute slug for a global attribute?<\/h3><\/dt>\n<dd><p>Use the attribute's taxonomy name with the <code>pa_<\/code> prefix, for example <code>pa_color<\/code> or <code>pa_width<\/code>. Blocks inserted from the inserter fill this in for you.<\/p><\/dd>\n<dt id=\"why%20is%20the%20block%20empty%20on%20some%20products%3F\"><h3>Why is the block empty on some products?<\/h3><\/dt>\n<dd><p>The block only outputs content when the current product has a value for the selected attribute. This keeps your layout clean when an attribute does not apply to a product.<\/p><\/dd>\n<dt id=\"can%20i%20style%20the%20output%3F\"><h3>Can I style the output?<\/h3><\/dt>\n<dd><p>Yes. The block renders a paragraph with the class <code>wp-block-pkart-shop-attributes<\/code>, plus the attribute slug as an extra class (for example <code>pa_color<\/code>). Inside it you'll find:<\/p>\n\n<ul>\n<li><code>.wp-block-pkart-product-attributes-display__prefix<\/code><\/li>\n<li><code>.wp-block-pkart-product-attributes-display__value<\/code><\/li>\n<li><code>.wp-block-pkart-product-attributes-display__suffix<\/code><\/li>\n<\/ul>\n\n<p>You can also add your own CSS class from the block's <strong>Advanced<\/strong> settings panel.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20slow%20down%20my%20site%3F\"><h3>Does the plugin slow down my site?<\/h3><\/dt>\n<dd><p>No. The block is rendered on the server, loads no front-end JavaScript, and does not add database tables or options.<\/p><\/dd>\n<dt id=\"is%20the%20plugin%20compatible%20with%20woocommerce%20hpos%3F\"><h3>Is the plugin compatible with WooCommerce HPOS?<\/h3><\/dt>\n<dd><p>Yes. The plugin declares compatibility with High-Performance Order Storage and the Cart and Checkout blocks. It does not read or write order data.<\/p><\/dd>\n<dt id=\"is%20the%20plugin%20translation-ready%3F\"><h3>Is the plugin translation-ready?<\/h3><\/dt>\n<dd><p>Yes. All strings use the <code>pkart-product-attributes-display<\/code> text domain.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Show WooCommerce product attributes like color, width, size, or material anywhere in your block-based product templates.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/386379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=386379"}],"author":[{"embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pluginskart"}],"wp:attachment":[{"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=386379"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=386379"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=386379"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=386379"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=386379"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=386379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}