This repository has been archived by the owner on Jan 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
readme.txt
94 lines (64 loc) · 2.84 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
=== WP Term Meta ===
Contributors: johnjamesjacoby, stuttter
Tags: taxonomy, term, meta, metadata
Requires at least: 4.2
Tested up to: 4.4
Stable tag: 0.1.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
== Description ==
Metadata, for taxonomy terms.
WP Term Meta allows developers to store key/value pairs of data along with a category, tag, or any custom taxonomy.
= Also checkout =
* [WP Term Order](https://wordpress.org/plugins/wp-term-order/ "Metadata, for taxonomy terms.")
* [WP Term Authors](https://wordpress.org/plugins/wp-term-authors/ "Authors for categories, tags, and other taxonomy terms.")
* [WP Term Colors](https://wordpress.org/plugins/wp-term-colors/ "Pretty colors for categories, tags, and other taxonomy terms.")
* [WP Term Icons](https://wordpress.org/plugins/wp-term-icons/ "Pretty icons for categories, tags, and other taxonomy terms.")
* [WP Term Visibility](https://wordpress.org/plugins/wp-term-visibility/ "Visibilities for categories, tags, and other taxonomy terms.")
* [WP User Groups](https://wordpress.org/plugins/wp-user-groups/ "Group users together with taxonomies & terms.")
* [WP Event Calendar](https://wordpress.org/plugins/wp-event-calendar/ "Flexible events, with a calendar view.")
== Screenshots ==
1. Term Metadata Database Schema
== Installation ==
Download and install using the built in WordPress plugin installer.
Activate in the "Plugins" area of your admin by clicking the "Activate" link.
No further setup or configuration is necessary.
== Frequently Asked Questions ==
= Does this create new database tables? =
Yes. It creates a new `wp_termmeta` database table for each site it's activated on.
= Does this modify existing database tables? =
No. All of WordPress's core database tables remain untouched.
= How do I query for terms via metadata? =
With WordPress's `get_terms()` function, the same as usual, but with an additional `meta_query` argument according the `WP_Meta_Query` specification:
http://codex.wordpress.org/Class_Reference/WP_Meta_Query
`
$terms = get_terms( 'category', array(
'depth' => 1,
'number' => 100,
'parent' => 0,
'orderby' => 'order', // Try the "wp-term-order" plugin!
'order' => 'ASC',
'hide_empty' => false,
// Looky looky!
'meta_query' => array( array(
'key' => 'term_thumbnail'
) )
) );
`
= Where can I get support? =
The WordPress support forums: https://wordpress.org/support/plugins/wp-term-meta/
= Where can I find documentation? =
http://github.com/stuttter/wp-term-meta/
== Changelog ==
= 0.1.4 =
* Compatibility with WordPress 4.4
* Prevent debug logging
* Fix multisite switch_to_blog() implementation
= 0.1.3 =
* Introduce base UI helper class
= 0.1.2 =
* Code cleanup
= 0.1.1 =
* Add check for existing function
= 0.1.0 =
* Initial release