DisplayKit – Page, Post & Product Display Block

外掛說明

DisplayKit allows WordPress users to display content from any post type — including pages, posts, and WooCommerce products — with powerful layout and styling options, all without writing a single line of code.

Key Features

  • Any Content Type — Display Posts, Pages, WooCommerce Products, or any registered Custom Post Type.
  • Specific Item Selection — Hand-pick individual posts or products to showcase by searching and selecting them in the editor.
  • Multiple Layouts — Grid (1–6 columns) and List layouts with customizable card dimensions, alignment, and responsive breakpoints.
  • WooCommerce Integration — Product price, sale badges, star ratings, stock status, and Add to Cart buttons are displayed automatically when showcasing products.
  • Post Card Customization — Toggle featured images, titles, excerpts, author/date meta, and read-more buttons. Control image aspect ratios, typography, colors, spacing, and border radius.
  • Open in New Tab — Optionally open all card links in a new browser tab.
  • Performance Optimized — Skeleton loading states, lazy-loaded images, and smooth CSS transitions ensure great Core Web Vitals scores.
  • Mobile-First Design — Layouts adapt beautifully to any screen size with responsive breakpoints.
  • Security — All inputs are sanitized and outputs are properly escaped.

Editor Experience

Settings are organized into intuitive panels in the block sidebar:

  • Query Panel — Post type, taxonomy, terms, author, order, count, specific posts/products selection
  • Layout Panel — Grid/List, columns, gaps, card dimensions, alignment
  • Display Panel — Toggle post card elements, open in new tab, image aspect ratio
  • WooCommerce Panel — Price, rating, sale badge, add to cart controls (appears when product post type is selected)
  • Style Panel — Colors, typography, spacing, border radius

Third-Party Services

This plugin does not connect to any third-party or external services. All data is queried and rendered locally from your WordPress installation using the WordPress REST API.

螢幕擷圖

  • DisplayKit block in the Gutenberg Block editor.
  • Grid layout with customizable card dimensions and alignment.
  • List layout with customizable card dimensions and alignment.

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • DisplayKit – Page, Post & Product Display Block A flexible block for displaying pages, posts, and WooCommerce products with multiple layouts, rich customization, and dynamic querying.

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/displaykit directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. In the block editor, search for “DisplayKit” and add it to your page.

常見問題集

Does it work with Custom Post Types?

Yes! The block dynamically fetches all public post types registered on your site.

Does it work with WooCommerce?

Yes! Select the “Products” post type and DisplayKit will automatically show product-specific information like price, ratings, sale badges, and an Add to Cart button. WooCommerce must be installed and activated separately.

Can I sort products by price, popularity, or rating?

Yes! When the Products post type is selected with WooCommerce active, additional “Order By” options appear: Price, Popularity, Rating, etc.

Can I display specific posts or products?

Yes! Use the “Specific Posts/Products” control in the Query panel to search and hand-pick individual items to display.

What are the minimum requirements?

WordPress 6.2 or higher and PHP 7.4 or higher. For WooCommerce product features, WooCommerce must be installed and active.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈DisplayKit – Page, Post & Product Display Block〉的開發相關工作。

參與者

變更記錄

1.0.0

  • Initial release with page/post/product display, multiple layouts, WooCommerce integration, and rich customization.