Modify “Recent Comments” List in WP-Admin
There doesn’t seem to be a hook/filter available to control comments displayed in the widget. You might have to create new dashboard widget for this as new plugin or as part of themes function.php
There doesn’t seem to be a hook/filter available to control comments displayed in the widget. You might have to create new dashboard widget for this as new plugin or as part of themes function.php
If you want to remove it, then find the part of your template file (probably index.php or loop.php) which refers to a comment-template and remove it, and also disable commenting in WordPress-settings (to disable use of comments.php from other pages). If you want to style it, look for comment_form() or a similar function in functions.php … Read more
The way you’re doing this, you’re going to get the raw SQL date that’s stored in the wp_comments table. You can still use the convenience functions like comment_date with get_comments. In this case, we’ll use get_comment_date. The first argument is the date format — if you leave it blank, WP will use whatever date format … Read more
the comments_popup_link() function will only work when used within the_loop; a ‘foreach’ loop using post Ids is not the same. you could try to build your own link, based on this function: get_comments_number( $id ).
Try to use the wp_list_comments function: http://codex.wordpress.org/Function_Reference/wp_list_comments It allows you to control the aspect of every comment, also the replies. Then, you define a callback function, which will be called when WordPress creates each comment. Your callback needs to start like this: function commnents_callback($comment, $args, $depth) { $GLOBALS[‘comment’] = $comment; global $post; // your HTML … Read more
This a php syntax error, try: foreach($last_updated_comment as $key => $last_comment_date){ print_r( $last_comment_date ); echo “<br /><br />”; }
You can control whether comments appear by filtering the comments_open() function. Here is an example from the WordPress codex: add_filter( ‘comments_open’, ‘my_comments_open’, 10, 2 ); function my_comments_open( $open, $post_id ) { $post = get_post( $post_id ); if ( ‘page’ == $post->post_type ) $open = false; return $open; }
Well, this is definitely a little hackish but what I ended up doing was changing the action on the form to “[mysite url]/wp-comments-post.php”. Then I took advantage of a few action hooks in wp-comments-post.php to hijack that page: add_action(‘pre_comment_on_post’, array($this, ‘process_image_upload’)); And if anyone is curious as to how I wrote the process_image_upload function (which … Read more
Got it figured, so I’m closing this question out. Here was the problem: on comment approval, I had some custom stuff hooked, and this custom stuff was throwing an error. This error was being included as part of the comment approval’s AJAX response. It turs out that on listings pages in the admin, if WordPress … Read more
UPDATE The frame element has a height of 1000px. I am not sure which file generates the comment form, but the height seems to be in that file. Simply delete height=1000px to remove the space. Also, if you want to remove the Vanilla credit and link, add .vanilla-credit {display:none !important} to your style sheet. ORIGINAL … Read more