product-grid.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Title: Product Grid
  4. * Slug: kiosko/product-grid
  5. * Categories: woocommerce
  6. */
  7. declare( strict_types = 1 );
  8. ?>
  9. <!-- wp:query {"query":{"perPage":"9","pages":0,"offset":0,"postType":"product","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"__woocommerceStockStatus":["instock","outofstock"]},"displayLayout":{"type":"flex","columns":3},"namespace":"woocommerce/product-query"} -->
  10. <div class="wp-block-query">
  11. <!-- wp:post-template {"fontSize":"small"} -->
  12. <!-- wp:woocommerce/product-image {"isDescendentOfQueryLoop":true} /-->
  13. <!-- wp:group {"style":{"spacing":{"blockGap":"0px","padding":{"bottom":"var:preset|spacing|40"}}},"layout":{"type":"constrained"}} -->
  14. <div class="wp-block-group" style="padding-bottom:var(--wp--preset--spacing--40)">
  15. <!-- wp:post-title {"level":3,"isLink":true,"style":{"typography":{"textTransform":"none","fontStyle":"normal","fontWeight":"400"},"spacing":{"margin":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}},"fontSize":"small"} /-->
  16. <!-- wp:woocommerce/product-price {"isDescendentOfQueryLoop":true} /-->
  17. </div>
  18. <!-- /wp:group -->
  19. <!-- /wp:post-template -->
  20. <!-- wp:spacer {"height":"1px"} -->
  21. <div style="height:1px" aria-hidden="true" class="wp-block-spacer"></div>
  22. <!-- /wp:spacer -->
  23. <!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"center"}} -->
  24. <!-- wp:query-pagination-previous /-->
  25. <!-- wp:query-pagination-numbers /-->
  26. <!-- wp:query-pagination-next /-->
  27. <!-- /wp:query-pagination -->
  28. </div>
  29. <!-- /wp:query -->