
內容簡介
Category Wise Post Listing 外掛提供了一個原生的動態區塊和向後相容的 [cat_listing] 短代碼,讓使用者能夠輕鬆地在網站上顯示分類文章,並支援多種佈局和篩選功能,提升內容展示的靈活性與互動性。
【主要功能】
• 原生 Gutenberg 區塊,具即時預覽功能
• 支援列表、網格、卡片及緊湊佈局
• 無需重新載入頁面即可篩選文章和搜尋
• 數字分頁、加載更多及無限滾動功能
• 多重分類術語及進階排序選項
• WooCommerce 產品價格及購物車按鈕
外掛標籤
開發者團隊
原文外掛簡介
Category Wise Post Listing provides a native dynamic block and the backward-compatible [cat_listing] shortcode.
Features:
Native Gutenberg block with live server preview.
List, grid, card, and compact layouts.
Taxonomy filters and post search without page reloads.
Numbered pagination, load more, and infinite scrolling.
Multiple taxonomy terms and advanced sorting.
Date, post ID, sticky post, and custom-field queries.
Featured images, custom excerpt lengths, dates, authors, and comment links.
WooCommerce prices, ratings, stock-aware add-to-cart buttons.
Versioned transient caching with automatic invalidation.
Block theme colors, typography, alignment, and spacing controls.
Accessible live status, semantic navigation, keyboard controls, and reduced motion.
Editor variations and bundled block patterns.
Visual shortcode builder under Tools > Category Listing Builder.
Theme template overrides and developer filters.
Block Bindings source for a post’s primary taxonomy term.
Basic shortcode:
[cat_listing slug="music"]
Interactive grid:
[cat_listing slug="music,news" layout="grid" columns="3" posts_per_page="6" show_thumbnail="yes" show_filters="yes" show_search="yes" pagination="load_more"]
WooCommerce products:
[cat_listing post_type="product" taxonomy="product_cat" slug="featured" layout="cards" columns="4" show_thumbnail="yes"]
To customize a post, copy template/category_listing.php to:
your-theme/category-wise-post-listing/content-post.php
Shortcode attributes
Content: post_type, taxonomy, slug, posts_per_page, include, exclude, offset.
Sorting: orderby, order, sticky.
Taxonomy: include_children, tax_relation.
Advanced: date_after, date_before, meta_key, meta_value, meta_compare, cache_minutes.
Display: layout, columns, heading, heading_text, show_thumbnail, thumbnail_size, show_excerpt, excerpt_length, show_date, show_author, show_comments, class, no_posts_text.
Interactive: show_filters, show_search, pagination (none, numbers, load_more, or infinite).
WooCommerce: product_price, product_rating, product_cart.
Boolean values accept yes, no, true, false, 1, or 0.
Developer filters
cwpls_normalized_attributes
cwpls_query_args
cwpls_post_template
cwpls_shortcode_output
