Chief Alchemist - Business Consulting For The 21st Century Via A Holistic & Intelligent Approach
Share ChiefAlchemist.com. RSS 2.0 feed for ChiefAlchemist.com. Sign up for the mailing list. Follow Chief Alchemist on Twitter. 'Like' the Chief Alchemist's page on Facebook. See what Chief Alchemist has been Q&A'ing on Quora. Chief Alchemist bookmarks & highlights on Diigo.com. Follow the Chief Alchemist on Digg.com. Chief Alchemist channel on Last.fm. Chief Alchemist on Flickr. Mark 'Chief Alchemist' Simchock on LinkedIn. Free Initial Consultation. Email Chief Alchemist. Phone Chief Alchemist.
  • Mark ‘Chief Alchemist’ Simchock
  • 'Email me.Email => ca .at. ChiefAlchemist .dot. com
  • 'Phone me.Alchemy United => 732 997-0028
  •  
  • Free initial consultation.Free => Initial Consultation
  • Please be sure to subscribe to your communication channels of choice.
  • Click To Close => The small green (consultation), red (email) or blue (phone) icons in the top upper right.
CURRENT “TOP 10” TOPICS TOOLS CLIENTS & PROJECTS SOURCES SEARCH HIDE
Business Consulting For The 21st Century Via A Holistic & Intelligent Approach

Bonus function for WP Ultimate Taxonomy Manager plugin

FYI => As part of my master plan to develop the AU_Community WordPress theme, aside from integrating the AU plugin family, I also want to add taxonomies to the mix. As the new & improved plan sits on my drawing board today there are a  couple essential needs that taxonomies can satisfy.

Sorry, you’re going to have to wait to see HCH (HubCityHeartbeat.com) in full bloom before I tip my hand on where and how taxonomies are fitting into the mix. That said, I promise you’ll be impressed once that envelope has been pushed. Nothing earth shattering but “Aha” will be heard plenty of times.

The plugin I’ve settled on is XYDAC’s Ultimate Taxonomy Manager.

http://taxonomymanager.wordpress.com/

Sorry again, I’m not going to tell you why this plugin is the best fit. You’ll just have to trust me when I tell you that it is. What I am willing to share today is this function that supplement’s XYDAC’s foundation.
if ( !function_exists('funct_GetTaxonomyField') ){
function funct_GetTaxonomyField($str_PostID, $str_TaxTerm, $str_TaxTermField){
$arr_UTM = xydac_cloud ($str_TaxTerm,'',$str_TaxTermField);
$arr_GetTerm = wp_get_post_terms($str_PostID, $str_TaxTerm);
$str_ReturnStr = '';
foreach ($arr_GetTerm as $arr_GetTermRow) {
$str_ReturnStr .= htmlspecialchars_decode($arr_UTM[$arr_GetTermRow->name][$str_TaxTermField]);
} // end foreach
return $str_ReturnStr;
} // end function
} // end if

Just paste this function into your theme’s function file and use it for get multiple values of a given custom field for a given taxonomy term. Best I could tell the specific functionality of UTM that I’m exploiting doesn’t support returning multiples. Now you can.

The final step will be to toss XYDAC a few bucks for making more AU innovative magic happen.

  1. Eric

    Thanks so much for your function, it will help lots of people out t here, but there is one error.

    The line $str_ReturnStr .= htmlspecialchars_decode($arr_UTM[$arr_GetTermRow->name][$str_TaxTermField]);

    needs to use slug instead…

    $str_ReturnStr .= htmlspecialchars_decode($arr_UTM[$arr_GetTermRow->slug][$str_TaxTermField]);

    Thanks
    ERic

  2. Chief Alchemist

    Hello Eric. Thanks for pointing that out. It could be there’s been a update to Ultimate Taxonomy Manager that shifted the loophole I exploited. Regardless, glad I could help. And thanks again for your added knowledge.

Required.
Will not be published. Required.
Please include http://