title: WordPress get tags for Custom Post Type
body: <p>Trying to get the tags for a custom post type called public-blob but the code is only pulling in the tags for a single blog post not all the public-blog cpt.</p>
  
  <p>code is:</p>
  
  <pre><code>$posttags = get_the_tag_list();
  if ($posttags) {
    foreach($posttags as $tag) {
  
      echo '&lt;a href="' . get_tag_link( $tag-&gt;term_id ) .'"&gt;' . $tag-&gt;name . '&lt;/a&gt;'; 
    }
  }
  </code></pre>
  
  <p>any help will be great.</p>