The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
3answers
352 views

Comment as post - understanding wp_list_comments

I'm creating a site where a central question will be posed on the front page with excerpted first-tier comments linking to a page with the full first-tier comment, presented almost as a post, with ...
1
vote
1answer
283 views

ol children instead of ul children

I've created a new walker class to display a custom layout when using the wp_list_comments(); function and this is perfect, the only thing is that all replies to one comment are listed in a <ul> ...
0
votes
1answer
66 views

Customizing Comments on Posts

I have implemented custom code for generating comments on post page using callback function in functions.php. function MYTHEME_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ...
0
votes
1answer
61 views

By Default, Turn Comments Off for Pages & Leave Comments On for Posts

By default "Discussion: Allow comments." is checked when a new page or post is created. I know you can make "Discussion: Allow comments." unchecked by default on both pages and posts by going to ...
0
votes
1answer
58 views

Comment Function

How would I make this Function display only the latest 5 comments? function showLatestComments() { global $wpdb; $sql = " SELECT DISTINCT comment_post_ID, comment_author, comment_date_gmt, ...
-1
votes
1answer
76 views

wp_list_comments adds unnecessary elements

wp_list_comments adds UL / OL or DIV which do not serve for my thema. how do I prevent this?? screeshots: http://d.pr/i/1bpn my code http://pastebin.com/bQxUyZTs tnx!
1
vote
0answers
39 views

Display date and time in comments

I use wp_list_comments(); to display a list of comment in WordPress. But it does show the format characters instead of the correct datetime. How can I fix this bug? Thank you.
1
vote
0answers
97 views

wp_list_comments renders incorrectly nested <ul>

I'm trying to figure out how wp_list_comments works. So I made the simplest possible callback just to see the structure of the result: function custom_comments_callback( $comment, $args, $depth ) { ...
0
votes
0answers
22 views

Set up the link in a reply to the parent comment?

I'm styling chronological order comments. I found this snip on this WordPress Answers site from here comment_reply_link( array_merge( $args, array( 'reply_text' => __( ...
0
votes
0answers
37 views

Move the 'Reply' link to the end of existing replies

I'm using a custom theme based on _s but I think this is standard WordPress behaviour. Currently, if an existing comment already has several replies, the reply link remains just below the original ...
0
votes
0answers
45 views

How to check whether post contains pingback/trackback or not

I want to check whether post contain pings and then display the pings. I used the following code and it does not work for me. <?php if ( !empty($comments_by_type['pings']) ) : ?> <div ...
0
votes
0answers
50 views

Theme comment callback results nothing

I made theme and now im finally editing the look of wp_list_comments. I made function, wrote callback link to arguments and tried it. It returns nothing - only elements hard coded in comments.php are ...