how to make the link of comment section “nofollow” safely?

to customise the link “You must be logged in”, you can use that in your template : comment_form([ “must_log_in” => “<a href=\”https://wordpress.stackexchange.com/questions/18007/\”>a question about unicorns</a>”, ]); other arguments are detailed in the official documentation : https://developer.wordpress.org/reference/functions/comment_form/

Forming comments on WordPress blogs with TeX [closed]

WordPress doesn’t support this out the box so you’d need to know how Tex support is implemented on that blog. Looking at the raw HTML suggests tex2jax_ignore which heavily implies Mathjax is being used. A quick look at Math stack exchange suggests they’re using MathJax v2.7.5. Having said that, Stack exchange doesn’t use HTML the … Read more

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)