Is it better to set social media sharer in entry-footer.php or comments.php in WordPress blog?
Is it better to set social media sharer in entry-footer.php or comments.php in WordPress blog?
Is it better to set social media sharer in entry-footer.php or comments.php in WordPress blog?
There is one more way to achieve this, without overriding files, using functions.php. Add following code in functions.php file. add_filter(‘wp_list_comments_args’, ‘override_args’, 10, 1); function override_args($args) { $args = array( ‘style’ => ‘ol’, ‘short_ping’ => true, ‘avatar_size’ => 56, ‘per_page’ => ‘3’ ); return $args; }
Try use the following code in your themes functions.php // http://scribu.net/wordpress/prevent-blog-authors-from-editing-comments.html function restrict_comment_editing( $caps, $cap, $user_id, $args ) { if ( ‘edit_comment’ == $cap ) { $comment = get_comment( $args[0] ); if ( $comment->user_id != $user_id ) $caps[] = ‘moderate_comments’; } return $caps; } add_filter( ‘map_meta_cap’, ‘restrict_comment_editing’, 10, 4 );
Alright, so I have no idea what went wrong originally. I just deleted and reposted the blog post and the comment section miraculously started working. Go figure. Hopefully it will be a smooth sailing from now on.
Extremely not tested, based on overriding the global “users must login to comment” option (comment_registration) for a specific post function wpse208664_option_comment_registration($v) { if (is_single() && (get_the_ID() == your specific post ID)) $v = 0; return $v; } add_filter(‘option_comment_registration’, ‘wpse208664_option_comment_registration’);
Comments page id wp_list_comments
I eventually solved this with a slightly different approach. This allows users to include images in their comments. One issue I’m still having, which is really a whole new question, but worth mentioning here, is that the user may not be allowed to upload new images to the post, and only include images already in … Read more
Thanks for all of your answers guys. Finally I found solution for me issue. Once the post is published we can add comments. If the post is pending it won’t allow administrators to add a new comment. The answer is simple, if we publish the post we can add comments.
Let user delete comment on front end only
{sheepish grin} Had nothing to do with plugins. Was “comments automatically closed after twenty days.”