How to display the comment_form with a shortcode while removing it from its default position?

I was already able to have the comments form show in the post content area with this code, which allows me to use the [wpsites_comment_form] shortcode: add_shortcode( ‘wpsites_comment_form’, ‘wpsites_comment_form_shortcode’ ); function wpsites_comment_form_shortcode() { ob_start(); comment_form(); $cform = ob_get_contents(); ob_end_clean(); return $cform; } What I need is to remove the comments form from the bottom of … Read more

Remove “at” string from wordpress comment date

I’m using the following code to format the author’s comment date and remove the time: function my_change_comment_date_format( $date, $date_format, $comment ) { return date( ‘d M Y’, strtotime( $comment->comment_date ) ); } add_filter( ‘get_comment_date’, ‘my_change_comment_date_format’, 10, 3 ); function wpb_remove_comment_time($date, $d, $comment) { if ( !is_admin() ) { return; } else { return $date; } … Read more

How to save new comment as custom comment type?

My previous plugin was saving the comments as type=”wp_review_comment”. I have handled the previous custom fields as below. But I’m having difficulty saving the comments as a custom comment type. // Add default fields add_filter(‘comment_form_default_fields’,’custom_fields’); function custom_fields($fields) { $commenter = wp_get_current_commenter(); $req = get_option( ‘require_name_email’ ); $aria_req = ( $req ? ” aria-required=’true'” : ” … Read more

adding a text message beside the comment submit button

What is the cleanest way to display a text message beside the submit button like this in screen shot: I am currently doing it by editing the file wp-includes/comment-template line 1577 (wordpress 3.5) before: <input name=”submit” type=”submit” id=”<?php echo esc_attr( $args[‘id_submit’] ); ?>” value=”<?php echo esc_attr( $args[‘label_submit’] ); ?>” /> after: <input name=”submit” type=”submit” id=”<?php … Read more

Help with “text domain”, comments_form in WordPress theme

I’ve been plugging away at creating my own theme and am pretty much there, but ran the Theme Check plugin and had a few concerns/questions: Throughout the theme, wherever there is text, I’ve used _e( ‘Import / Export’ ); for example to help with translations. I’m getting this message though throughout: RECOMMENDED: Text domain problems … Read more

How can i customize the comment list

I am using wp_list_comments() function to draw the comment list.But,I want change many things in the form like class,styles, reply link and etc… so please help me, How can i customize the comment listing function Thanks 5 Answers 5 The wp_list_comments() call accepts a callback argument, in which you can define the specifc comment-list markup … Read more

Custom values are not translated

I’m trying to translate my plugin. Inside plugin’s root folder I have ‘inc’ folder, where located registration.php file. This file has a code, which adds custom fields to comment form. (I use right solution from this answer) and here is a part of a code, which should be translated. $myfields[‘code’] = sprintf( ‘<p class=”comment-form-code”> <label … Read more