Comments on: Customising wp_list_comments() http://www.studiograsshopper.ch/code-snippets/customising-wp_list_comments/ Sun, 22 Mar 2015 14:44:25 +0000 hourly 1 http://wordpress.org/?v=4.1.1 By: Hugh http://www.studiograsshopper.ch/code-snippets/customising-wp_list_comments/#comment-238020 Tue, 04 Jun 2013 10:57:51 +0000 http://www.studiograsshopper.ch/?p=1239#comment-238020 Hi,

What do I do if I don’t have a comments.php file? I had a custom WP theme made for me but they never made a comment section, so I’m attempting to make one on my own. However, I’m not sure: Should I just make my own comments.php file or should I download another theme and try and take it from there? Any help would be appreciated, thanks!

]]>
By: Dexter http://www.studiograsshopper.ch/code-snippets/customising-wp_list_comments/#comment-237859 Sun, 19 May 2013 16:28:32 +0000 http://www.studiograsshopper.ch/?p=1239#comment-237859 For some reason it got rid of it. I meant this:


'div'));
?>

]]>
By: Dexter http://www.studiograsshopper.ch/code-snippets/customising-wp_list_comments/#comment-237858 Sun, 19 May 2013 16:26:58 +0000 http://www.studiograsshopper.ch/?p=1239#comment-237858 Hi,

I’m having trouble with this. I have a custom theme, and it only displays this:

'div')); ?>

in the comments.php – what do you suggest I do? I just want to remove the URL field.

Regards,

]]>
By: Ade http://www.studiograsshopper.ch/code-snippets/customising-wp_list_comments/#comment-237815 Thu, 16 May 2013 17:31:45 +0000 http://www.studiograsshopper.ch/?p=1239#comment-237815 A “callback” is a function which is passed as an argument to another function.
In our example, the function custom_pings() is the “callback”. This needs to be placed in your functions.php.
To make it do something useful, this callback then has to be passed to the wp_list_comments() function (which probably appears in your theme template files), like this:
wp_list_comments('type=pings&callback=custom_pings');

]]>
By: Dan http://www.studiograsshopper.ch/code-snippets/customising-wp_list_comments/#comment-237802 Wed, 15 May 2013 14:50:24 +0000 http://www.studiograsshopper.ch/?p=1239#comment-237802 Very nice “wp_list_comments()”
Will try to use it in my works.
But not at all understand callback of functions.php.
Good article! Tnx, Mark!))

]]>
By: Ade http://www.studiograsshopper.ch/code-snippets/customising-wp_list_comments/#comment-32067 Sun, 10 Jul 2011 19:09:18 +0000 http://www.studiograsshopper.ch/?p=1239#comment-32067 Thanks for posting, Mark!

Glad you found the article useful. :-)

]]>
By: Mark http://www.studiograsshopper.ch/code-snippets/customising-wp_list_comments/#comment-31180 Sun, 19 Jun 2011 23:26:23 +0000 http://www.studiograsshopper.ch/?p=1239#comment-31180 Ade,

Absolutely Fantastic! Was just about to throw in the towel with respect to gaining added control over wp_list_comments() and then found your post. It took a little bit to fully understand what was going on, but you hit the nail on the head. Thank You!

FYI, deploying this on WP 3.1.2 with a theme manager plug-in and the ‘custom comment’ plug-in because I want to gather — and thanks to you — report additional field-level data associated with Comments.

Again, Thank You.

– Mark

]]>
By: Nurul Imam http://www.studiograsshopper.ch/code-snippets/customising-wp_list_comments/#comment-29481 Fri, 20 May 2011 20:58:26 +0000 http://www.studiograsshopper.ch/?p=1239#comment-29481 How To Add Reply {Comment Threading} Fungction Manualy ?

]]>
By: Ade http://www.studiograsshopper.ch/code-snippets/customising-wp_list_comments/#comment-27571 Mon, 11 Apr 2011 19:37:04 +0000 http://www.studiograsshopper.ch/?p=1239#comment-27571 Yes. Try it and see. :-)

]]>
By: Iurie http://www.studiograsshopper.ch/code-snippets/customising-wp_list_comments/#comment-27557 Mon, 11 Apr 2011 10:41:39 +0000 http://www.studiograsshopper.ch/?p=1239#comment-27557 Sorry, my previous message is a question. Any suggestions? Please help!

]]>