title: wordpress. character limit on category title using substr
body: <p>I am using this code. Now i want to add "..." at the end of every category titles  with more than 10 characters.'</p>
  
  <p>sample: coconut is the b...</p>
  
  <p>how to do that? </p>
  
  <pre><code>&lt;a href="' . get_category_link($category-&gt;term_id) . '"&gt;' . substr($category-&gt;cat_name, 0, 10) . ' &lt;/a&gt;
  </code></pre>