WP Blocks to Category
Automatically assign categories to posts based on the blocks they contain. Configure block-to-category mappings in Settings > WP Blocks to Category.
by Dataforge · github.com/dataforge/wp-blocks-to-category · website
★ 0stars
4release downloads
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/dataforge/wp-blocks-to-category/releases/download/v1.0.3/wp-blocks-to-category-1.0.3.zipDeclares an update source (https://github.com/dataforge/wp-blocks-to-category), so updates arrive through the plugin's own updater.
From the readme
WP Blocks to Category
A WordPress plugin that automatically assigns categories to posts based on the blocks they contain. Configure block-to-category mappings and let the plugin handle category management automatically.
Features
- Automatic Category Assignment: Posts are automatically assigned categories based on their block content
- Multi-Category Support: Assign multiple categories to each block type
- Additive Approach: Preserves existing categories while adding new ones
- Block Detection: Works with all registered WordPress blocks
- Optional Category Removal: Toggle whether categories should be removed when blocks are removed from posts
- Easy-to-Use Interface: Simple settings page under WordPress Settings menu
- Search & Filter: Quickly find blocks in the settings interface
- Real-time Updates: Categories are assigned when posts are created or updated
Installation
Manual Installation
1. Download or clone this repository
2. Upload the wp-blocks-to-category folder to your /wp-content/plugins/ directory
3. Activate the plugin through the 'Plugins' menu in WordPress
4. Navigate to Settings WP Blocks to Category to configure
Via WP-CLI
Usage
Configure Block Mappings
1.
Read the full README on GitHub →