跳到内容

CartTrigger – BAG

v2.0.12

Poletto 1976 · 2026年3月19日 上架

Enhance WooCommerce brands with custom fields, awards badges, and lifestyle galleries with native lightbox support.

正在使用
10 以下
评分
暂无
累计下载
631
最近更新
2026年10月12日
需要 WordPress 6.3+已测试到 7.1.5PHP 7.4+

贡献者

截图

Brand edit screen — plugin banner with HTML Description module (TinyMCE editor).
Brand edit screen — plugin banner with HTML Description module (TinyMCE editor).
Custom Fields, Awards, and Gallery modules with drag & drop support.
Custom Fields, Awards, and Gallery modules with drag & drop support.

CartTrigger – BAG (Brand · Awards · Gallery) extends the WooCommerce native brand taxonomy with three powerful modules:

Custom Fields

Attach unlimited key–value pairs to any brand. Output them anywhere via shortcode or PHP helper function. CSS classes are fully customisable, including Tailwind arbitrary-value classes (e.g. text-[11px]).

Awards

Manage a list of awards and recognitions for each brand — with optional logo, award name, event name, and year. Display them as a styled list using the [ctbag_awards] shortcode.

Gallery

Upload a curated image gallery per brand. Display it as a responsive grid with the [ctbag_gallery] shortcode. Optional native WooCommerce lightbox (PhotoSwipe) via lightbox="1".

Shortcodes

[ctbag_custom_fields]
Outputs brand custom fields as a <dl> list.

[ctbag_custom_fields brand="slug" wrapper_class="..." dt_class="..." dd_class="..."]

[ctbag_awards]
Outputs brand awards as a styled card list.

[ctbag_awards brand="slug" title="Awards" wrapper_class="..." card_class="..."]

[ctbag_gallery]
Outputs brand gallery as a responsive image grid.

[ctbag_gallery brand="slug" title="Gallery" wrapper_class="..." lightbox="1"]

PHP Helper Functions

All shortcodes are also available as direct PHP functions that bypass WordPress’ shortcode parser — useful when Tailwind arbitrary-value classes (e.g. text-[11px]) would otherwise be mangled:

echo ctbag_custom_fields(['wrapper_class' => 'grid grid-cols-2 gap-4']);
echo ctbag_awards(['title' => __('Awards', 'your-textdomain')]);
echo ctbag_gallery(['title' => __('Gallery', 'your-textdomain'), 'lightbox' => '1']);

Professional Admin UI

All brand meta fields are presented in a clean, card-based admin interface grouped by module (HTML Description, Custom Fields, Awards, Gallery), with collapsible shortcode reference built in. Custom fields and awards support drag & drop reordering. Gallery images can be removed individually (× button on hover) and reordered by dragging.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums