內容簡介
總結:這個外掛具有彈性的篩選選項和可自定義的版面配置,非常適合管理和呈現各種資源,如文章、作品集、產品或任何自訂內容。而且這個外掛使用 GNU 通用公共授權條款第2版或之後版本 (GPL-2.0+) 授權。
問題與答案:
1. 外掛提供了哪些功能?
- 自定義的文章類型和分類:顯示自定義文章類型,並使用其相關的分類進行篩選。
- AJAX 驅動的篩選器:流暢、異步的內容篩選,帶來無縫的使用體驗。
- 響應式設計:針對不同螢幕尺寸進行調整,以實現在桌面和移動裝置上的最佳顯示效果。
- 可自定義版面:通過短代碼參數來選擇篩選位置和修改顯示的各個方面。
- 分頁:通過直觀的分頁系統瀏覽內容。
- ACF/WCK 兼容性:支持自進階自訂欄位或 WordPress 創建套件自訂欄位中的圖片。
2. 描述外掛的短代碼使用方式及可用的屬性有哪些?
- [easy_resource_hub] 短代碼是訪問外掛主要功能的方式。
- 可用的屬性包括 post_types、taxonomies、taxonomy_mode、multi_select、filters_position、left_column_width、items_per_page、acf_image_field 和 wck_image_field。
3. 請提供一個外掛短代碼的例子以及示範它的功能。
- [easy_resource_hub post_types=”article,portfolio” taxonomies=”category,tag″ items_per_page=”10″ filters_position=”left″ left_column_width=”250px″]:
- 這個短代碼會顯示文章和作品集,並篩選類別和標籤,每頁顯示10項,將篩選器置於左側並設置寬度為250px。
4. 如何安裝這個外掛?
- 將 easy-resource-hub 資料夾上傳到 /wp-content/plugins/ 目錄中。
- 通過 WordPress 中的「外掛」選單啟用外掛。
5. 外掛的樣式怎樣進行自定義?
- 可以使用 CSS 進行樣式訂製,外掛的類和 ID 可用於修改外觀以符合您的佈景主題。
外掛標籤
開發者團隊
原文外掛簡介
With flexible filter options and customizable layouts, this plugin is ideal for managing and presenting various resources such as articles, portfolios, products, or any custom content.
Live Demo: Check out the live demo here.
This plugin is licensed under the GNU General Public License, version 2 or later (GPL-2.0+)
Features
Custom Post Types and Taxonomies: Display custom post types and filter them using their associated taxonomies.
AJAX-powered Filters: Smooth, asynchronous content filtering for a seamless user experience.
Responsive Design: Adapts to different screen sizes for optimal viewing on desktops and mobile devices.
Customizable Layouts: Choose filter positions and modify aspects of the display through shortcode parameters.
Pagination: Navigate through content with an intuitive pagination system.
ACF/WCK Compatibility: Supports images from Advanced Custom Fields or WordPress Creation Kit custom fields.
Shortcode Usage
The main functionality of the plugin is accessible through the [easy_resource_hub] shortcode. Below are the available attributes:
post_types: Specify the custom post types to display. Default is all public post types.
taxonomies: List of taxonomies to use for filtering. Default is all taxonomies associated with the specified post types.
taxonomy_mode: Determines which taxonomies are shown (‘all’ or ‘common’). Default is ‘all’.
multi_select: Enable multi-select for taxonomy filters. Default is false.
filters_position: Position of the filters (‘above’ or ‘left’). Default is ‘above’.
left_column_width: Width of the left column when filters are on the left. Only effective with filters_position=”left”.
items_per_page: Number of items to display per page.
acf_image_field: Specify an ACF field name to use for images if no featured image is set.
wck_image_field: Specify a WCK field name to use for images if no featured image is set.
Example:
[easy_resource_hub post_types=”article,portfolio” taxonomies=”category,tag” items_per_page=”10″ filters_position=”left” left_column_width=”250px”]
This shortcode displays articles and portfolios, filters by categories and tags, shows 10 items per page, places filters on the left with a width of 250px.
Installation
Upload the easy-resource-hub folder to the /wp-content/plugins/ directory.
Activate the plugin through the ‘Plugins’ menu in WordPress.
Customization
Styling can be customized via CSS. The plugin’s classes and IDs can be used to modify the appearance to fit your theme.
License
This plugin is released under the GPL license.
