Category and Taxonomy Meta Fields

Description

Plugin to add custom meta fields within built in and custom taxonomies. Simply add the desired fields by going through WP-admin -> Settings ->Taxonomy Meta .

you can add following fields with category/taxonomy

  • Image.
  • Input Text.
  • Textarea.
  • Checkbox.

Features

  • Very simple in use
  • Can be customized easily.

Screenshots

  • Settings page where you can add the custom fields
  • Example of the custom fields under the general category fields

Installation

  1. Unzip into your /wp-content/plugins/ directory. If you’re uploading it make sure to upload
    the top-level folder. Don’t just upload all the php files and put them in /wp-content/plugins/.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to your WP-admin ->Settings menu a new “Taxonomy Meta” page is created.
  4. Go to your WP-admin ->Settings ->Taxonomy Meta displayed in the category modification form with the meta you configured.
  5. You can use the below function into your templates to retrieve all meta using ‘category id’:

    if (function_exists(‘get_all_wp_terms_meta’))
    {
    $arrayMetaList = get_all_wp_terms_meta($category_id);
    }

    // array all meta fields for category/term
    print_r($arrayMetaList);

where $category_id is category/term id .

  1. you can use the below function into your templates to retrieve any particular meta using ‘category id’ and ‘meta key’:

    if (function_exists(‘wp_get_terms_meta’))
    {
    $MetaValue = wp_get_terms_meta($category_id, $meta_key ,true);
    }

    //meta value for meta key $meta_key
    echo $metaValue;

where $category_id is ‘category/term id’ and $meta_key is ‘meta key’.

FAQ

  1. No technical skills needed.
Installation Instructions
  1. Unzip into your /wp-content/plugins/ directory. If you’re uploading it make sure to upload
    the top-level folder. Don’t just upload all the php files and put them in /wp-content/plugins/.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to your WP-admin ->Settings menu a new “Taxonomy Meta” page is created.
  4. Go to your WP-admin ->Settings ->Taxonomy Meta displayed in the category modification form with the meta you configured.
  5. You can use the below function into your templates to retrieve all meta using ‘category id’:

    if (function_exists(‘get_all_wp_terms_meta’))
    {
    $arrayMetaList = get_all_wp_terms_meta($category_id);
    }

    // array all meta fields for category/term
    print_r($arrayMetaList);

where $category_id is category/term id .

  1. you can use the below function into your templates to retrieve any particular meta using ‘category id’ and ‘meta key’:

    if (function_exists(‘wp_get_terms_meta’))
    {
    $MetaValue = wp_get_terms_meta($category_id, $meta_key ,true);
    }

    //meta value for meta key $meta_key
    echo $metaValue;

where $category_id is ‘category/term id’ and $meta_key is ‘meta key’.

Reviews

Some errors should be fixed

Hi there,
– In wp-taxonomy-meta-scripts.js line 37 missing “enable” variable definition
– In wp-taxonomy-meta.php file: missing right php definition – should be <?php

plugin on Github

Hi;
First of all, thank you for plugin simple and efficient in the same time.
I was wondering if your plugin is on Github so we can contribute on it.

This plugin really works for me!

I am very thankful to this plugin and its developer Aftab. He did help me with the code I need since I am not coder. Really appreciate his help and would recommend him for wordpress and magento works. Kudos to you Aftab.

Thank you very much for helping me im really very happy 🙂

Read all 10 reviews

Contributors & Developers

“Category and Taxonomy Meta Fields” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

This is first version no known errors found