Looping through custom taxonomy in one template

As Template hierarchy says, there are 5 possible file names for displaying taxonomy:

  • taxonomy-{taxonomy}-{term}.php – If the taxonomy is sometax, and taxonomy’s term is someterm, WordPress will look for taxonomy-sometax-someterm.php. In the case of post formats, the taxonomy is ‘post_format’ and the terms are ‘post-format-{format}. i.e. taxonomy-post_format-post-format-link.php for the link post format.
  • taxonomy-{taxonomy}.php – If the taxonomy were sometax, WordPress would look for taxonomy-sometax.php.
  • taxonomy.php
  • archive.php
  • index.php

You wanted to achieve second case, but in your taxonomy name you have got dash (taxonomy-business-types.php). It means that WordPress will use this file only when taxonomy name will be business and term of this taxonomy will be types (first case).

error code: 523