Just SOLVED UserPro's Biggest SEO Issue! – UserPro Forums https://forum.userproplugin.com/forums/topic/just-solved-userpros-biggest-seo-issue/feed/ Fri, 10 May 2024 06:00:35 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/just-solved-userpros-biggest-seo-issue/#post-45554 <![CDATA[Just SOLVED UserPro's Biggest SEO Issue!]]> https://forum.userproplugin.com/forums/topic/just-solved-userpros-biggest-seo-issue/#post-45554 Wed, 14 Jan 2015 02:41:15 +0000 UberLucas I purchased UserPro when it was first launched. It was great, but had many bugs. I enjoyed Ahmed’s swift replies, until he hired (or maybe was bought out?) a “support staff” that seemingly knew nothing about the plugin.

Nevertheless, most things ran smoothly and due to the terrible, new support staff I had to face any problems/bugs on my own.

There have been many bugs, but the biggest of them all that affects YOU to this day is the SEO of UserPro. Sure, it has pretty permalinks, BUT the title tag for UserPro member profile page is still not fixed.

Seriously, if you visit a profile page on even UserPro’s current demo site you’ll see every single member profile has the same title tag. Bollocks! Now, for me with thousands of members, that means thousands of duplicate pages. And search engines get cranky with that.

Searching through the UserPro forums, Ahmed said he would create a tutorial on how to fix this issue. But, I never could find it.

Now, to the good part. I use Yoast’s WordPress SEO to manage every page/post title tags, etc. Definitely the best SEO plugin out there. Nevertheless, a year later I have discovered how to solve the title tag issue, at least for anyone using WordPress SEO plugin.

Add the following to your theme’s functions.php file:

function profile_page_name( $var1 ) {
return basename($_SERVER[“REQUEST_URI”]);
}
function register_my_plugin_extra_replacements() {
wpseo_register_var_replacement( ‘%%basename%%’, ‘profile_page_name’, ‘advanced’, ‘Returns the current page\’s basename’ );
}
add_action( ‘wpseo_register_extra_replacements’, ‘register_my_plugin_extra_replacements’ );

In case the above code were to not copy right, here’s the raw code: http://pastebin.com/6xj06hes

Then, on the page that was automagically created for the profile view page you need to edit the “SEO Title:” part of the page in the WordPress SEO section.

Add: %%basename%%

Example of mine: %%basename%%’s Profile | BlackBerry Community | N4BB

So, for my profile it would then output as: Lucas’s Profile | BlackBerry Community | N4BB

See this example in the photo here: http://i.imgur.com/HSzoYK7.jpg

I hope this will help many of you, and nudge UserPro developers to make the plugin more SEO friendly.

Cheers!

]]>
https://forum.userproplugin.com/forums/topic/just-solved-userpros-biggest-seo-issue/#post-45573 <![CDATA[Reply To: Just SOLVED UserPro's Biggest SEO Issue!]]> https://forum.userproplugin.com/forums/topic/just-solved-userpros-biggest-seo-issue/#post-45573 Wed, 14 Jan 2015 12:49:24 +0000 acidf Thanks , nice tips 🙂

In Yoast / social / Facebook Title:
Can we also add: %%basename%% ?

greetZ

]]>
https://forum.userproplugin.com/forums/topic/just-solved-userpros-biggest-seo-issue/#post-46130 <![CDATA[Reply To: Just SOLVED UserPro's Biggest SEO Issue!]]> https://forum.userproplugin.com/forums/topic/just-solved-userpros-biggest-seo-issue/#post-46130 Thu, 19 Feb 2015 17:10:44 +0000 kreacom Thanks Uberlucas!

I was searching a while for that fix!

Cheers,

]]>
https://forum.userproplugin.com/forums/topic/just-solved-userpros-biggest-seo-issue/#post-46151 <![CDATA[Reply To: Just SOLVED UserPro's Biggest SEO Issue!]]> https://forum.userproplugin.com/forums/topic/just-solved-userpros-biggest-seo-issue/#post-46151 Sat, 21 Feb 2015 16:49:26 +0000 DKENT213 The Developer really needs to get this fixed, like ASAP.

]]>