[WordPress] 外掛分享: JBX Category Columns

首頁外掛目錄 › JBX Category Columns
10+
安裝啟用
尚無評分
4097 天前
最後更新
問題解決
WordPress 3.4+ v1.1 上架:2014-04-24

內容簡介

這是一個簡單的外掛程式,可讓使用者在文章、頁面、自訂文章類型或直接在樣板中插入分類欄位。此外,您可以設定要顯示的文章數量,以及是否顯示與文章相關聯的特色圖片。

使用方法

將以下標籤添加到任何文章、頁面或自訂文章類型:

[jbx]

預設每個分類欄位顯示的文章數為 3。您可以通過在numberposts屬性中指定想要顯示的文章數量來進行更改。如下所示為範例:

[jbx columns='3' names='類別名稱 1、類別名稱 2、類別名稱 3' numberposts='3' images='true']

您也可以直接在樣本中加入以下代碼,並根據需要調整屬性:

<?php echo do_shortcode("[jbx columns='3' names='類別名稱 1、類別名稱 2、類別名稱 3' numberposts='3' images='true']"); ?>

此外,現在您還可以使用短碼多次添加多個實例。

樣式可以在 jbx-catcolumns 外掛程式資料夾中的樣式表中進行編輯。該檔名為 jbxCatColumns-style.css。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「JBX Category Columns」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

A simple plugin that allows users to insert columns of categories in posts, pages, custom post types or directly in a template. In addition, you can set the number of posts to display and whether or not to display the featured image associated with the post.
Usage
Add the following tag to any post, page or custom post type.
[jbx]

The default number of posts per category the plugin will show is 3. You can specify the number of posts to show by specifying in the numberposts attribute. See below for examples:
[jbx columns='3' names='Category Name 1, Category Name 2, Category Name 3' numberposts='3' images='true']

You can also add it directly to a template using the folowing code and adjusting the attributes to your likeing.

In addition, you now can also add multiple instances to by using the shortcode multiple times.
Styles can be edited in the stylesheet included in the jbx-catcolumns plugin folder. The file is entitled jbxCatColumns-style.css.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon