UsersWP Profile SEO setting is not showing title and profile avatar

[ad_1]

I set up Meta Title in usersWP setting with shortcode [#display_name#] of [#site_name#] but it returns null (check with both heymeta.com and also in the tab).

Also the user avatar is not shown.

In previous update I used to modify file “class-uwp-seo.php” by adding these lines:

            $title = $this->get_meta_title();
            $displayed_user = uwp_get_displayed_user();
            $displayed_user_id = !empty($displayed_user->ID) ? $displayed_user->ID : 0;
            $user = get_user_by( 'id', $displayed_user_id );
	    $urx = uwp_get_usermeta( $user->data->ID, 'avatar_thumb', '' );
	    $urxcek = strpos($urx, 'http'); 
		if ($urxcek === false) {
		    $urx = 'https://mysite.com/wp-upload'. $urx;
		  } else {
		    $urx = ''. $urx;
		  }

            echo '<title>'.$title.'</title>';	    
            echo '<meta name="title" content="' . $title . '" /><br>';
	    echo '<meta property="og:title" content="'. $title .'" />';
	    echo '<meta property="og:image" content="'. $urx .'" />';
	    echo '<meta property="og:image:width" content="500" />';
	    echo '<meta property="og:image:height" content="500" />'; 

have not modify in recent update since I must modify in every updates.

Please advise if I missed something here? Thanks.

 

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