Ultimate Taxonomy Manager – Custom Fields on Archive Pages

There’s not much documentation for the WordPress Plugin called Ultimate Taxonomy Manager, but it’s the only one I found that claimed to easily let you add custom fields/options to your custom taxonomies.

So, If you are using Ultimate Taxonomy Manager to display custom fields for terms under a custom taxonomy, and you were wondering how to show the fields on the taxonomy archive pages, this is how I did it:

<?php
//standard wordpress call
$taxonomy = '~~~~insertcustomtaxonomynamehere~~~~';
$customfield = '~~~~nameofcustomfield~~~~';
$cat_name = get_query_var( $taxonomy );
$term = get_term_by('name', $cat_name, $taxonomy);

//ultimate taxonomy manager plugin specific call:
$var = xydac_cloud($taxonomy,'',$customfield);
echo 'MY CUSTOM FIELD:' . $var[$cat_name][$customfield];

?>

See my Demo images below:
My taxonomy name was: test
my custom field was: summary

The page shows a custom summary field for whatever term you are viewing. so for demo, we are viewing the page for category/term called “child”, where i added custom data for “child”‘s summary field.

If you are looking to echo regular fields in your archive pages for custom taxonomy, like for instance, the taxonomy description:

<?php

$taxonomy = 'test';
$customfield = 'summary';

$cat_name = get_query_var( $taxonomy );
$term = get_term_by('name', $cat_name, $taxonomy);
echo 'The term description is: '. $term->description . "<br/>\n";
?>

Leave a Reply