You can write your own custom HTML structure for comment listing. Inside your comments.php file, there will be a call to wp_list_comments() function. Find it, and pass your own function as its callback:
wp_list_comments( array( 'callback' => 'my_function' ) );
Now, create a callback function and start implementing your own HTML structure. This function accepts 3 arguments. Here is a basic example:
my_function( $comment, $args, $depth ){
$GLOBALS['comment'] = $comment;
// You have access to comment's ID and other
// comment query methods here, such as comment_ID();
}
Related Posts:
- Comments to only be seen by their author
- How do I make the comment disappear after deleting from the database?
- Comment function for page
- How can I return the result of my custom function?
- Increase Comment Author Gravatar Size On WordPress Default Comment Function
- Undo a function that is not (seemingly) hooked to an action?
- Getting full code of wp_list_comments instead of replacing it
- Remove Comments Metabox but still allow comments
- How can I remove the title “leave a reply” in the comment box in twentyeleven?
- change the comment time output to: X time ago instead of actual date and time
- How to get comments with mixed status using get_comments?
- How to prevent deleting of comments when deleting a post
- disable comments if array exists
- Remove “says” from comments
- Display the number of user comments
- How do I change parameters without changing the core
- How to Add a Random Custom Gravatar in the WordPress Comments?
- Show top commenters without using a plugin
- Commenter should see only his comments in wordpress
- Filter out other users comments. Visualize only own comments and editor role users’ comments
- wp-comment author- url +, email filter hook
- Where to add the permalink in this function?
- Incorrect redirect after commenting
- comments_popup_link without echo?
- Getting comment count per post not working
- Wp admin – Set default value to 999 in comments
- What is the Difference in bones_comments() and comments.php
- Function to replace comment’s accented characters before posting
- WordPress comment_form() does not display actual comments
- WordPress comment processing . Default unapproved comments detection before posting
- How do I change where “You must be logged in to comment” directs users?
- Why isn’t comment validation working?
- Remove nofollow from internal comment links via functions.php
- How can I automatically delete comments that contain a URL?
- Warning and fatal error
- I want to change the WordPress comments file
- How to identify author in wordpress comments?
- Newest comments first not working
- get_comments not working properly after WordPress v4.4 update
- Getting error while trying to use custom comment function
- Custom Nested WordPress Comments with avatar
- Comment Function
- WP Custom Comment Callback Not Responding
- How to remove “login to reply” from individual comments [duplicate]
- Comment turned Invisible
- User’s Comments Number: Storing it in a meta field for different uses
- Add functionality to block comment authors in the Comment edit pag
- comments_template() doesn’t work with ajax call
- How to use: WP_AJAX_GET_COMMENTS
- WP backend, Show only own comments (give to users who wrote/published/assigned) posts
- What is the difference between get_page_link and get_permalink functions?
- Breadcrumbs showing Parent and Child Pages
- mysql custom wp query
- TinyMCE custom stylesheets for different post types
- Display random text from a file with the WP built-in AJAX API
- Is It wrong to use oop approach on functions.php?
- How to preserve edits to Name or Slug of term when using wp_update_term on save?
- Woocommerce checkout field maxlength, make input number field only (postcode)
- Register and enqueue style.css custom theme
- Where do I add html code to the menu div?
- Add function to every post?
- How to call wp_list_comments() outside of the comments template?
- Publish/Update post is changing image links from file url to post url
- How to stop twenty fifteen theme from cropping featured images?
- Filtering out the #more anchor link that gets produced by
- file_get_contents – failed to open stream
- Exclude from the query posts with meta_key and meta_value
- wp_nonce_field is breaking form for reasons unknown
- How do I call a function to use on a page?
- Different favicon on different pages
- Javascript not loading after the document ready
- Need to convert image url to a Base_64 data url with wordpress function..
- How do I display a date correctly that is stored in the database as a backwards 8 digit number from Advanced Custom Fields? [closed]
- Modify shortcode to work with custom post types
- Fatal error: allowed memory size when after using enqueue_script
- How to redirect Subscribers on login to specific page, when logging in from a Page
- how can I add filter in specfic field in my website?
- Which filter fires upon setting a featured image
- functions.php pharse error on complete new install
- If has action not working as expected
- Update wp_postmeta table based on 2 keys
- Best practice to call a function from a button-link?
- How to customize archive widget only for cpt?
- some profile informations like youtube link doesnt seem
- Help using ShortCodes to style whole chunks of the post
- How to modify or override a core function (wp_star_rating)
- Is there is a way to check daily first login?
- Filter posts on new page
- Sticky – Featured Image
- Pagination not working on my archive page for a custom post type
- WordPress Jquery+scripts enqueue issue
- How to pass a variable from a template page to the child theme functions.php
- Home/Static Page View for Visitors pages after that should be restricted
- functions.php filters not applied in AJAX call
- Settings in functions.php used by a plugin
- Make WordPress search for only this tags or exclude certain tags from search [duplicate]
- Adding result from PHP function into an input field
- Echo a div to header.php from functions.php
- PHP error in shortcode [closed]
- Show one post per author and order by custom field