What filter or action to replace comments or add new comment system
The answer is the filter comments_template add_filter(“comments_template”, “swmc_comments_template”);
The answer is the filter comments_template add_filter(“comments_template”, “swmc_comments_template”);
I think you need to change ‘Comments’ to ‘something’ but it from admin side. Please follow steps: 1> Go to Appearance -> Editor in your WordPress dashboard (In the list of theme files, on the right, click on “Theme Functions” to open your functions.php file) 2> Enter the following code in your functions.php file: add_filter(‘genesis_title_comments’, … Read more
Following was the HTML – <!– Comment Form HTML –> <div class=”sub-figure”> <div class=”sub-post-title”> <h4 class=”recent-title”>Comments</h4> </div> </div> <!– Leave a comment –> <div class=”sub-figure”> <div class=”sub-post-title”> <h4 class=”recent-title”>Leave A Comment</h4> </div> <form class=”form-inline”> <div class=”col-xs-12 col-sm-4 col-md-4 form-group”> <input type=”text” class=”form-control height-in” id=”reply-name” placeholder=”Enter Name”> </div> <div class=”col-xs-12 col-sm-4 col-md-4 form-group”> <input type=”email” class=”form-control … Read more
To achieve this, create a new page template and use this code in that file. Then, use your submit form to redirect the user after commenting to the new page. $user_login = $_POST[‘user_login’]; $user_email = $_POST[‘user_email’]; $errors = register_new_user($user_login, $user_email); if ( !is_wp_error($errors) ) { $redirect_to = !empty( $_POST[‘redirect_to’] ) ? $_POST[‘redirect_to’] : ‘wp-login.php?checkemail=registered’; wp_safe_redirect( … Read more
If it is for the post, then check whether in the post settings have you allowed the comments should be displayed? Also do check the settings at: /wp-admin/options-discussion.php
Use the comments number function or the more native get_comments_number function and combine it with the page comments option if ( get_option( page_comments ) == TRUE ) // do stuff
function facebook_setup_function() { add_meta_box( ‘facebook_widget’, ‘Facebook Moderation Tools’, ‘facebook_widget_function’, ‘dashboard’, ‘normal’, ‘low’ ); } function facebook_widget_function() { include (‘facebook.php’); } add_action( ‘wp_dashboard_setup’, ‘facebook_setup_function’ ); add the above to your functions file and replace the include url with the php file you wish to include into your dashboard. Setting it up ; Use the facebook.php and … Read more
Just search though your source code to find the function definition? It’s in plugins/buddypress/bp-themes/bp-default/functions.php, and you can create your own version in your theme that should override the supplied one.
this should work… <?php global $wpdb; $sql = “SELECT comment_ID FROM “. $wpdb->prefix .”comments WHERE comment_parent = 0 AND comment_ID NOT IN(SELECT comment_parent FROM “. $wpdb->prefix .”comments);”; $results = $wpdb->get_results($sql); ?>
You can prevent some hits by blocking bots before akismet catches them, these plugins can be very effective. Plugins: Bad Behavior plugin: http://wordpress.org/extend/plugins/bad-behavior/ Honeypot Traps: http://wordpress.org/extend/plugins/project-honey-pot-spam-trap/ WP-Hashcash http://wordpress.org/extend/plugins/wp-hashcash/ Zig Trap http://wordpress.org/extend/plugins/zigtrap/ Stop bots with no user agents from posting and directory browsing (this goes in your .htaccess) RewriteEngine On RewriteCond %{REQUEST_METHOD} POST RewriteCond %{HTTP_USER_AGENT} ^$ … Read more