title: how to display all categories in wordpress?
body: <p>I used this code:</p>
  
  <pre><code>      $categories = wp_get_post_categories(get_the_ID());
        foreach($categories as $category){
            echo '&lt;div class="col-md-4"&gt;&lt;a href="' . get_category_link($category) . '"&gt;' . get_cat_name($category) . '&lt;/a&gt;&lt;/div&gt;';
          }
  </code></pre>
  
  <p>but return only one category, how can i get all the categories? </p>