I have written my custom `WP_Query` and using loop to display post content. I use `get_the_category()` to display categories of current post and it works fine. Now for some post types there are custom taxonomies instead of categories. 

**Code to get categories**:

```
$categories = get_the_category();
   if(!empty($categories)){
      foreach($categories as $index => $cat){
         echo $cat->name;
      }
   }

```

Now I need to pull all taxonomies and print them in comma separated format.

I tried this:

```
$taxonomies = get_the_taxonomies();
if(!empty($taxonomies)){
   foreach($taxonomies as $taxonomy){
         echo $taxonomy;
   }
}

```

It works and shows in this format "Taxonomy Label: Term (hyperlinked)". If the terms are more than one than it adds "and" between terms. I need only terms and if they are multiple then they should be separated by comma.

I **want to know**:

1. The best approach to achieve those results
2. Is it recommended to to use above method?
3. Can I use `regex` to extract value?
4. How can I get rid off hyperlink?

Thanks