PHP code example of stuttter / wp-term-families
1. Go to this page and download the library: Download stuttter/wp-term-families library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
stuttter / wp-term-families example snippets
$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'
) )
) );