Support » Plugin: SEO Ultimate » Adding support for front-page rel=publisher

  • Resolved Myk Klemme

    (@mklemme)


    I know that there isn’t much proof of the effect that using rel=”publisher” on the frontpage instead of rel=”author”, but Google has been slowly emphasising the importace of including it. Since there isn’t native support for it, I added a conditional for the frontpage and created a dedicated publisher account to support it.

    Is this a feature that SEO Ultimate will roll out?

    FYI: Here is what I added:

    if ($user_id !== false) {
    	$url = get_user_meta($user_id, 'googleplus', true);
    	$url = su_esc_attr($url);
    	if ($url){
    		if (is_front_page()) {
    			echo "\t<link rel=\"publisher\" href=\"$url\" />\n";
    		} else {
    			echo "\t<link rel=\"author\" href=\"$url\" />\n";
    		}
    	}
    }

    I know it isn’t the prettiest solution, but it works.

    http://wordpress.org/extend/plugins/seo-ultimate/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Adding support for front-page rel=publisher’ is closed to new replies.