Comment count next to post title?

On most cases you should be able to use the_title filter to modify the title string. Use get_comments_number() to get the comments count for the post – of given ID or the current one. For example, add_filter( ‘the_title’, ‘wpse_427277_the_title’, 10, 2 ); function wpse_427277_the_title( string $title, $post_id = null ): string { $comment_count = (int) … Read more

WP backend, Show only own comments (give to users who wrote/published/assigned) posts

Using the comments_pre_query filter, this seemed to work well in development and testing: /** * @param null $comment_data Return an array of comment data to short-circuit WP’s comment query. * @param WP_Comment_Query $query WP_Comment_Query instance, passed by reference. */ add_filter( ‘comments_pre_query’, static function ( $comment_data, $query ) { // Limit to admin area. if ( … Read more

Nofollow the date/time hyperlink in comment

Modifying core WordPress files, like class-walker-comment.php, is generally not recommended, as your changes will be overwritten with each WordPress update. Instead, you can achieve the same effect by using a child theme and custom functions. This way, your modifications remain intact across updates. I tried a few different things but I was able to get … Read more

How to increase comment length?

Solved the issue. Thank you @birgire for giving me a hint. First I edited MySQL wp_comments table by changing comment_content rows «Type» from TEXT to MEDIUMTEXT and restarted MySQL. Then created filter in functions.php: add_filter( ‘wp_get_comment_fields_max_lengths’, ‘my_length’ ); function my_length ( $lengths ) { global $wpdb; $lengths = array( ‘comment_author’ => 245, ‘comment_author_email’ => 100, … Read more

techhipbettruvabetnorabahisbahis forumutaraftarium24eduedusedueduedusedusedusedueduedu