Title: Show Random Comment
Last modified: August 19, 2016

---

# Show Random Comment

 *  [Alkorr](https://wordpress.org/support/users/alkorr/)
 * (@alkorr)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/show-random-comment-1/)
 * Hi, do you know how to show a random comment on the home page? I don’t want to
   use a plugin only for that and I tried to modify the code to get a random post
   but it didn’t work.
 * If someone can help, that would be great! 🙂

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

 *  [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * (@dgwyer)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/show-random-comment-1/#post-1682493)
 * There should be plenty of Plugins that do something similar to this. So just 
   find one that does what you need and add the code directly to your home page 
   theme template.
 *  Thread Starter [Alkorr](https://wordpress.org/support/users/alkorr/)
 * (@alkorr)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/show-random-comment-1/#post-1682496)
 * Hi dgwyer, I know there are plenty of plugins that do it but I don’t want to 
   use a plugin, I prefer a hack, that’s why I asked how I can do that without using
   a plugin 😉
 *  [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * (@dgwyer)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/show-random-comment-1/#post-1682503)
 * And that is why I said find a Plugin that does what you want then get the code
   out that, at the bare minimum does what you want. Add it to your template file,
   then get rid of the Plugin.
 *  Thread Starter [Alkorr](https://wordpress.org/support/users/alkorr/)
 * (@alkorr)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/show-random-comment-1/#post-1682740)
 * I understand dgwyer but I’m not a coder and you clearly overestimate my knowledge,
   but I will try to do that if nobody can help me with it 😉
 *  [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * (@dgwyer)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/show-random-comment-1/#post-1682746)
 * OK, well if you are not a coder then why not consider a Plugin? That’s what they
   are there for, to extend the functionality of WordPress without you necessarily
   having to know how it works internally. 🙂

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

The topic ‘Show Random Comment’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/show-random-comment-1/#post-1682746)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
