Just go ahead and call it in the same way the tventyeleven does:
<?php
/* Loop through and list the comments. Tell wp_list_comments()
* to use twentyeleven_comment() to format the comments.
* If you want to overload this in a child theme then you can
* define twentyeleven_comment() and that will be used instead.
* See twentyeleven_comment() in twentyeleven/functions.php for more.
*/
wp_list_comments( array( 'callback' => 'twentyeleven_comment' ) );
?>
wp_list_comments function will manage $depth and other $args itself (in walker). See source code of wp_list_comments and the walker using callback arg
Related Posts:
- Nested comments ignored for max per page in wordpress
- Custom Comments – Parent / Nested Reply
- Why is styling comments so complex?
- Comment form not display properly?
- How to Auto Approve Comments on a Specific Page?
- comment_form() generates the wrong action url
- Customize comment list markup
- how to pull wordpress post comments to a external page
- Separated Comment from Post
- Remove “a href” from wp_list_comments()
- How to get comment meta values by post ID
- Compact pingback list with favicons
- How to change i18n/l10n of #reply-title? (Old title: Comment reply link not working)
- How to remove comment link title attribute?
- Comment entry screen shows even though “Allow Comments” is unchecked
- Jetpack Comments with fall-back
- WP_Comment_Query – Get comments and answers separately
- Trackbacks not displaying
- Nested comments in WordPress theme
- Comment status shows ‘closed’ in db, but it shows ‘open’ when i echo it
- Difference between “comment_form_default_fields” AND “comment_form_fields”
- How to enable Disqus comments in a WordPress theme I’m creating from scratch? [closed]
- How to add custom class to get_avatar()
- Same comments on all posts
- WordPress Comment spam issue
- WordPress comments title
- Ajax Comment Upvotes – Votes don’t always register
- Modify comments_popup_link output
- Woocommerce Theme Reviews / Comments
- child comments not displaying as nested
- How can I fix the even/odd child classes comments so that the comments are unaffected by the top-level even/odd?
- wp_update_comment not working
- Recent posts with comment count in “Sidebar” template [closed]
- Is there a Function so that the author of the comment can delete his own comment?
- When to use add_action(‘init’) vs add_action(‘wp_enqueue_scripts’)
- How to add Color Picker in Theme Options for the following?
- Template for individual post designs
- Theme Review: post thumbnail, header image, content width
- How to determine if a category is empty?
- The seventh parameter passed to add_submenu_page()
- Pushing updates to your premium theme
- The best way to add stylesheets to WordPress
- WordPress custom post type page dysplay 404 error
- How wordpress handle upload images and how to use them in the code
- Change loop order via form or link (jquery, not URL)
- how to create theme based widget that can be drop in sider bar or footer
- CSS in child theme not overriding the parent theme [closed]
- Remove frameborder attribute from iframes
- WordPress default theme css units
- Implement advanced search
- Where should I update_options in a theme?
- Users table association with users_metadata table appears broken
- multisite: global menu containing network site links?
- Injecting a custom sql query into a page/theme
- How to add styles set by user in the customizer
- Use second time navigation.js in underscores [closed]
- Why does has_nav_menu return false when get_registered_nav_menus shows the opposite?
- Add attachment for all images in post
- Displaying icon image for WordPress post formats, is there a cleaner way to do this?
- Static home page with “Blog” inside?
- Overrite parent functions using child functions
- How can I change the theme of different posts using a plugin?
- Include jQuery (or anything) inside Custom Options Panel’s tag
- WordPress 3 botches my Custom Meta Box values on Save
- Is there a WordPress boolean for “theme_customizer_active()”?
- Weirdness in jQuery supplied with WordPress
- Get Post’s Excerpt Without the Wrapping tags and the Read More link
- get_header action not working
- Navbar- disable “onClick” drop-down
- Injecting pre-defined text from custom page template to editor
- Remove h1 from 2015 theme
- Update Specific Key Value in Complex `wp_options` object
- Using Foundation 5 off-canvas-menu with WordPress
- multiple queries to get posts from same category?
- Parent/Child pages
- “The REST API did not process the context query parameter correctly.” Custom theme conflicting with Media Library
- Wrong activation/confirmation link in email
- How to enqueue scripts properly with ES6 webpack?
- Disabling wordpress added class
- Problem with pagination link (error 404)
- WordPress wp_get_current_user returning blank values until refresh
- PHP Script on a template page & dealing with URI’s
- Whether an tag is required in header?
- home is not working in wordpreess
- Responsive Images with art direction
- Correct form of escaping and localization – functions.php breadcrumbs
- New created Theme leads to malfunctioning Xampp Apache –> functions.php is cause
- Understanding WordPress theme files and underscores
- New theme HTML5 Support for Search in WordPress 4.4
- Where to find this broken link in order to remove it
- background_image support multiple image size?
- Moving Posts and Users Only to New Site
- What are these variables and where are they documented?
- Want to display page content after password prompt without page reload
- Why do some sites show themes/”themename” as the only theme?
- How can i move my product name & price from below thumbnail to be the rollover content in Avada & Woocommerce?
- My wordpress site memory exhausted more than 1GB trying to debug with default
- Display first post on each page differently than the others
- Custom Theme functions.php – Using add_settings_field and input type=”file” to set custom logo
- Image and font support missing in editor when deploying theme remotely