Use this tool to create custom code for WordPress Comment Query with WP_Comment_Query class.
- Fill in the user-friendly form.
- Click the “Update Code” button.
- Copy the code to your project.
- Or save it as a snippet and share with the community.
If you are still learning how to use this tool, check out the following examples:
The variable used in the code.
Show the comments loop.
Ascending or Descending order.
Sort retrieved comments by.
The total count of comments found.