How to get all approved comments on a specific post in WordPress?

Question

I am a newbie in WordPress theme development, I’ve somehow managed to create a WordPress theme but I am facing some issues here. The main problem is I want to get all approved comments on a specific post but I don’t know how to do it. Can anyone guide me please?

solved 0
Ask Human 3 weeks 1 Answer 27 views Learner 0

Answer ( 1 )

  1. Code to get all approved comments on a post in WordPress:

     

    Best answer

Leave an answer