Get term id of current taxonomy in wordpress


Staff member
I am trying to create a function which adds additional custom data fields to my taxonomy pages, I have found <a href="" rel="nofollow">this</a> plugin which add this capability.
Now I can get the saving the custom data works fine.. however trying to get the metadata on edit form pages is another story..

I've followed the documentation which says to use the following line..

get_term_meta($term_id, $key, $single)

However I am unable to get this to work.. I have to manually enter the term_id like so..

$term_meta = get_term_meta('36', '', true);

.. in order for it to work.
Can someone tell me what code I would need for php get the term_id?