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";
?>

About Steven Chu


Hi, I'm Steven! I'm an entrepreneur, photographer and art director in New York. Follow this blog for self expression, fun, and most importantly: looking comfortable, at ease, and amazing in your photos no matter who takes them! I dedicate this to my amazing friends who have let me inadvertently turn all of our hangouts and travel photos into a never ending photoshoot of fun. The proof is in the pudding-- our photos rock. My other projects: I'm the founder of InstaTechie.com, a face-to-face tech concierge service for NYC. Book a techie to walk you through something you want to learn! My work focuses on socially engaged art projects which use technology to create access to resources for communities. Visit Steven Chu Studio (stevenchustudio.com) for branding & design work or Steven Chu (stevenchu.com) for photography projects.

Leave a Reply