How to display a meta field for each term in your taxonomy-xyz.php template
-
For anyone trying to figure this out…
<?php $meta = get_option('meta_id'); if (empty($meta)) $meta = array(); if (!is_array($meta)) $meta = (array) $meta; $meta = isset($meta[get_queried_object_id()]) ? $meta[get_queried_object_id()] : array(); $value = $meta['field_id']; echo $value; // if you want to show ?>
- The topic ‘How to display a meta field for each term in your taxonomy-xyz.php template’ is closed to new replies.