Getting an entry's tags
If you have $entry, you should be able to get the tags by the field name, (codes, in your case). 

$tags = $entry-&gt;codes;
foreach($tags as $tag)
{
    echo "&lt;li&gt;".$tag-&gt;title."&lt;/li&gt;";
}