📄 docs: Add readme
This commit is contained in:
19
README.md
Normal file
19
README.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# Resource Filter Plugin
|
||||
|
||||
## Description
|
||||
The Resource Filter Plugin adds filtering capabilities for the 'resource' post type by 'resource_type' and 'resource_subject'. This plugin provides a shortcode to display a filter form and dynamically updates the resource results based on the selected filters.
|
||||
|
||||
## Installation
|
||||
1. Download the plugin files and place them in the `wp-content/plugins/resource-filter` directory.
|
||||
2. Activate the plugin through the 'Plugins' menu in WordPress.
|
||||
|
||||
## Usage
|
||||
1. Add the `[resource_filter]` shortcode to any post or page where you want to display the resource filter form.
|
||||
2. The filter form will allow users to search and filter resources by type and subject.
|
||||
|
||||
## Template Override
|
||||
To override the default form and results templates, create a `resource-filter` directory in your theme and copy the `filter-form.php` and `resource-results.php` files from the plugin `templates` directory to your theme directory. The plugin will use the template files in your theme directory instead of the default template files.
|
||||
|
||||
## Changelog
|
||||
### 1.0.0 - 2025-02-04
|
||||
- Initial release
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Plugin Name: Resource Filter
|
||||
* Description: Adds filtering for the 'resource' post type by 'resource_type' and 'resource_subject'.
|
||||
* Version: 1.0
|
||||
* Version: 1.0.0
|
||||
* Author: Keith Solomon
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user