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.
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.