Title: Comma between Post ID
Last modified: August 19, 2016

---

# Comma between Post ID

 *  Resolved [oneofayykind](https://wordpress.org/support/users/oneofayykind/)
 * (@oneofayykind)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/comma-between-post-id/)
 * Can someone explain how I can put a comma between a variable like this example
   below:
 * <?php echo get_the_term_list( $post->ID, ‘subtitle’ ) ; ?>
 * If there is more than one subtitle how do I get a comma between the output?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/comma-between-post-id/#post-1587523)
 * Try `<?php echo get_the_term_list( $post->ID, 'subtitle', '', ', ', '' ) ; ?>`
 * [http://codex.wordpress.org/Function_Reference/get_the_term_list](http://codex.wordpress.org/Function_Reference/get_the_term_list)
 *  Thread Starter [oneofayykind](https://wordpress.org/support/users/oneofayykind/)
 * (@oneofayykind)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/comma-between-post-id/#post-1587620)
 * Bingo! I was leaving off the first ” thank you so much for your help!
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/comma-between-post-id/#post-1587718)
 * You’re welcome. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Comma between Post ID’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/comma-between-post-id/#post-1587718)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
