| 1 | === Taxonomy Note === |
|---|
| 2 | Contributors: matteoenna |
|---|
| 3 | Tags: taxonomy, custom fields, term meta, content editing |
|---|
| 4 | Donate link: https://www.paypal.me/matteoedev/2.55 |
|---|
| 5 | Requires at least: 5.0 |
|---|
| 6 | Tested up to: 6.8 |
|---|
| 7 | Requires PHP: 7.4 |
|---|
| 8 | Stable tag: 1.0.1 |
|---|
| 9 | License: GPLv2 or later |
|---|
| 10 | License URI: http://www.gnu.org/licenses/gpl.html |
|---|
| 11 | |
|---|
| 12 | Add custom notes to taxonomy terms directly inside the post editor. Perfect for recipes, ingredients, attributes, or any taxonomy-based content. |
|---|
| 13 | |
|---|
| 14 | == Description == |
|---|
| 15 | |
|---|
| 16 | **Taxonomy Note** allows you to add a customizable “note” input field for every taxonomy term assigned to a post. |
|---|
| 17 | When a post type/taxonomy pair is enabled in the settings, a dedicated meta box will appear in the post editor showing all assigned terms, each with its own note field. |
|---|
| 18 | |
|---|
| 19 | This is ideal for: |
|---|
| 20 | |
|---|
| 21 | - Recipes (ingredients with quantity or notes) |
|---|
| 22 | - Products (attributes with additional info) |
|---|
| 23 | - Events (tags with remarks) |
|---|
| 24 | - Editorial workflows (categories with comments) |
|---|
| 25 | - Any situation where a taxonomy term needs extra per-post context |
|---|
| 26 | |
|---|
| 27 | Notes are stored per post, not globally — so each post can have different notes for the same term. |
|---|
| 28 | |
|---|
| 29 | ### 🧩 Key Features |
|---|
| 30 | |
|---|
| 31 | - **Admin Setup Panel** – Choose which post types and taxonomies should show the note panel. |
|---|
| 32 | - **Per-Post Notes** – Each post can store different notes for the same taxonomy term. |
|---|
| 33 | - **Automatic Cleanup** – If a term is removed from the post, its note disappears from the panel. |
|---|
| 34 | - **Lightweight & Non-Intrusive** – Pure WordPress; no JS frameworks required. |
|---|
| 35 | - **Perfect for Recipes** – Works beautifully if an AI or script extracts “ingredients” and you need to add quantities manually. |
|---|
| 36 | - **Compatible With Any Theme or Builder** – Gutenberg, Classic Editor, Elementor, and others. |
|---|
| 37 | |
|---|
| 38 | == Installation == |
|---|
| 39 | |
|---|
| 40 | 1. Upload the plugin folder to `/wp-content/plugins/taxonomy-note/` |
|---|
| 41 | 2. Activate the plugin from the **Plugins** menu. |
|---|
| 42 | 3. Go to **Settings → Taxonomy Note**. |
|---|
| 43 | 4. Select the post types and taxonomies where you want the note panel to appear. |
|---|
| 44 | |
|---|
| 45 | == Usage == |
|---|
| 46 | |
|---|
| 47 | 1. Edit any post type where you enabled the plugin. |
|---|
| 48 | 2. Assign one or more taxonomy terms as usual. |
|---|
| 49 | 3. A new **“Notes”** meta box will appear for each selected taxonomy. |
|---|
| 50 | 4. Enter any custom text next to each assigned term. |
|---|
| 51 | 5. Save the post — notes will be stored automatically. |
|---|
| 52 | |
|---|
| 53 | Notes are saved **only for terms currently assigned to the post**. |
|---|
| 54 | |
|---|
| 55 | == Credits == |
|---|
| 56 | |
|---|
| 57 | This plugin was created inside a project for Villa Sostaga. |
|---|
| 58 | Special thanks to Villa Sostaga for allowing the release as open source. |
|---|
| 59 | Maintained independently by Matteo Enna. |
|---|
| 60 | |
|---|
| 61 | == Frequently Asked Questions == |
|---|
| 62 | |
|---|
| 63 | ### Does removing a term delete its note? |
|---|
| 64 | Yes — if a term is no longer assigned to a post, its note is removed from the panel (and will not be saved). |
|---|
| 65 | |
|---|
| 66 | ### Are notes shared across posts? |
|---|
| 67 | No. Notes are *per post*, not global per term. |
|---|
| 68 | |
|---|
| 69 | ### Can I export or use these notes in the front-end? |
|---|
| 70 | Yes. Notes are stored as post meta (`_taxonomy_note_notes_{taxonomy}`) and can be displayed using: |
|---|
| 71 | |
|---|
| 72 | - `get_post_meta()` |
|---|
| 73 | - A custom shortcode |
|---|
| 74 | - Your theme files |
|---|
| 75 | - A custom plugin |
|---|
| 76 | |
|---|
| 77 | ### Is there any performance impact? |
|---|
| 78 | Minimal. Notes are loaded only when editing a post and stored efficiently in post meta. |
|---|