how to display all categories in wordpress in api code example
Example: wordpress display post categories
<?php the_terms( $post->ID, 'topics', 'Topics: ', ', ', ' ' ); ?>
<?php the_terms( $post->ID, 'topics', 'Topics: ', ', ', ' ' ); ?>