UsersWP Profile SEO setting is not showing title and profile avatar
-
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.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘UsersWP Profile SEO setting is not showing title and profile avatar’ is closed to new replies.