title: How can I get an array of custom categories in Wordpress?
body: <p>I have registered a custom taxonomy as part of my custom post type, but when passing it through to <code>get_categories()</code> it returns an empty array. Any ideas as to why?</p>
  
  <pre><code>// Register FAQ Categories taxonomy
  function bv_faq_register_categories() {
      register_taxonomy(
          'faq-category',
          'faq',
          array(
              'label'        =&gt; 'Categories',
              'rewrite'      =&gt; array('slug' =&gt; 'faq-category'),
              'hierarchical' =&gt; true
          )
      );
  }
  add_action('init', 'bv_faq_register_categories');
  
  // Category view
  $categories = get_categories(array(
      'taxonomy' =&gt; 'faq-category'
  ));
  </code></pre>
  
  <p><code>$categories</code> is returning an empty array.</p>