PHP code example of kunoichi / term-meta
1. Go to this page and download the library: Download kunoichi/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/ */
kunoichi / term-meta example snippets
// For example, display category title
// with specified background color
// in category archive.
$color = get_term_meta( get_queried_object_id(), 'category_color', true ) ?: '#000';