Reply To: Icons per status/custom fields/taxonomy

Home Forums Feature Requests Icons per status/custom fields/taxonomy Reply To: Icons per status/custom fields/taxonomy

#13634
robbie59
Participant

Thanks, but I this code still did not work. .Any ideas? I really need this to work with terms


function myiconid($iconid, $poi) {
if ($poi->postid && has_term('459_veh','crimes', $poi->postid))
return 'assault.png';
else
return $iconid;
}
	

add_action('mappress_poi_iconid', myiconid, 10, 2);