title: Display posts subcategory from category (Wordpress)
body: <p>How edit this code, to display only subcategory (from single category) of single post. 
  I started to write condition, that if this post has a category Berlin, then display all subcategories, that have been checked (alway it is one subcategory).
  F.e. I would display "Potsdamer Platz(title)" Place:Berlin (category), Modern (subcategory of Berlin)</p>
  
  <pre><code>&lt;?php 
  if ( in_category( 'Berlin' )) {
  </code></pre>
  
  <p>Berlin    <code>//Parent Category</code></p>
  
  <p>-Mittelstadt    <code>// Subcategory</code></p>
  
  <p>-Altstadt     <code>// Subcategory</code></p>
  
  <p>-Modern <code>// Subcategory</code></p>
  
  <pre><code>$subcategories = get_categories('&amp;child_of=66&amp;hide_empty=1'); 
  echo '&lt;ul&gt;';
  foreach ($subcategories as $subcategory) {
    echo sprintf('&lt;li&gt;&lt;a href="%s"&gt;%s&lt;/a&gt;&lt;/li&gt;', get_category_link($subcategory-&gt;term_id), apply_filters('get_term', $subcategory-&gt;name));
  }
  echo '&lt;/ul&gt;';
  </code></pre>