How to Display a Random Comment From a Specific Post

| Last Updated: | In: WordPress, WordPress Snippets


If you want to display the random comments from a specific post, then keep your eyes in this tutorial as I am going to share the simple and easy code snippets which will fetch the comments randomly from a specific post.

How to Display a Random Comment From a Specific Post

In the below code you need to replace the post id as per your choice. Use the below code in your template file Or your theme files where you want to display the random comments from a particular post.


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:


, ,