Guest/Member Tag in Comments |

I would like to indicate to the users who comment in the comments as “Member” if they are registered and “Guest” if they are guests. I’ll add this below the author name, to the right of the date. If it is the Author, nothing will happen, I will label those other than the author as I said above. Here is the code currently used by the theme:

					global $post;
					if ( $comment->user_id === $post->post_author && get_theme_mod( 'author_label' ) != 'no' ) {
						echo '<span>' . esc_html__( 'Post author', 'mission-news' ) . '</span>';
						if ( get_theme_mod( 'comment_date' ) != 'no' ) {
							echo ' | ';
					if ( get_theme_mod( 'comment_date' ) != 'no' ) {

How can I do what I want?


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer