PHP code example of stuttter / wp-term-meta
1. Go to this page and download the library: Download stuttter/wp-term-meta 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-meta example snippets
$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'
) )
) );