<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'has_term() function'</title>
    <description>Snipplr comments feed</description>
    <link>https://ipv6.snipplr.com/</link>
    <lastBuildDate>Wed, 08 Apr 2026 11:47:25 +0000</lastBuildDate>
    <item>
      <title>PubliOne said on 15/Feb/2011</title>
      <link>https://ipv6.snipplr.com/view/49051/hasterm-function</link>
      <description>&lt;p&gt;Ok, you created a Custom Post Type and some Custom Taxonomies for it. Now you want to check wether your post has a term (aka category) from the new taxonomy. There's no built-in function for this, or at least none that I know of (but I may be wrong).&#13;
&#13;
Anyway, this simple function requires 2 parameters: 1) the term name, 2) the taxonomy name. It returns a boolean. Just paste it in your functions.php file and you're good to go.&#13;
&#13;
Oh, I almost forgot: term names are case-sensitive, so type carefully.&lt;/p&gt;</description>
      <pubDate>Tue, 15 Feb 2011 22:48:22 UTC</pubDate>
      <guid>https://ipv6.snipplr.com/view/49051/hasterm-function</guid>
    </item>
  </channel>
</rss>
