开发者 |
johnjamesjacoby
stuttter |
---|---|
更新时间 | 2016年1月8日 06:52 |
PHP版本: | 4.3 及以上 |
WordPress版本: | 4.4 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
Yes. Please install the WP Term Meta plugin.
No. There are no new database tables with this plugin.
No. All of WordPress's core database tables remain untouched.
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,
'hide_empty' => false,
// Query by family using the "wp-term-meta" plugin!
'meta_query' => array( array(
'key' => 'family',
'value' => 'private'
) )
) );
`
The WordPress support forums: https://wordpress.org/support/plugin/wp-term-family/