Requires at least: 3.4 Tested up to: 4.6.1
Term Taxonomy Meta allows you to create meta fields attached to Term Taxonomy for all custom taxonomies.
With composer using WordPress Packagist
{
"require": {
"vincekruger/wp-term-taxonomy-meta": "dev-master"
}
}
Download the package and unzip to your plugins folder.
There is no administration panel to manage the meta. This is all managed via the database directory in the 'posts' table as a custom post type.
INSERT INTO `wp_posts` (`post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_title`, `post_excerpt`, `post_status`, `post_modified`, `post_modified_gmt`, `menu_order`, `post_type`) VALUES
(1, NOW(), NOW(), 'JSON_OBJECT', 'Meta Name', '', 'publish', NOW(), NOW(), 0, 'tt-meta');
Field Name | Description |
---|---|
post_author | User ID of the author |
post_date, post_date_gmt | Date Created |
post_modified, post_modified_gmt | Date Modified |
post_content | JSON Object *see below |
post_title | Meta Title displayed in WP-Admin |
post_excerpt | Description of meta, displayed below the field |
post_status | Draft, Publish |
menu_order | Will order the meta fields in WP-Admin |
post_type | always "tt-meta" |
{"type":"field_text","taxonomy":"taxonomy_name","meta_key":"meta_key_name"}
Key | Description | Values |
---|---|---|
type | What type of field to use | Field Type |
taxonomy | Name of the taxonomy to be used | String |
meta_key | Name of the meta key | String |
Key | Description |
---|---|
field_attachment | Single file media uploadeder |
field_switch | Switch with Yes/No with options |
field_text | Single line text field |
field_textarea | Multi-line text area |