WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
[resolved] Google+ Authorship & Publisher (27 posts)

  1. Grace Massa Langlois
    Member
    Posted 11 months ago #

    Good Morning

    I added my Google+ Personal Profile url to the settings field for Google Authorship unfortunately it is also using my Personal Profile information for rel=publisher, which is incorrect. I have both a Google+ Personal Profile, Grace Massa Langlois and Google+ Business Page. The Business Page has its own ID for publisher mark up. Is there a setting in which I can add the Business Page Profile url?

    http://wordpress.org/extend/plugins/all-in-one-seo-pack/

  2. Peter Baylies
    Member
    Plugin Author

    Posted 11 months ago #

    miavitadolce,

    In the General Settings page for All in One SEO Pack, under Google Settings, enter your Google+ Business Page Profile url as "Google Plus Default Profile", that is what is used for the Publisher url.

  3. plake777
    Member
    Posted 11 months ago #

    Peter,

    If you do that it changes rel="publisher" to the correct url, but also adds the same url to rel="author"

    <link rel="author" href="https://plus.google.com/109864413559064435900" />
    <link rel="publisher" href="https://plus.google.com/109864413559064435900" />

    Like miavitadolce, would like the author and publisher to be different.

    Thoughts?

  4. Peter Baylies
    Member
    Plugin Author

    Posted 11 months ago #

    plake777,

    For authors, add their Google+ profile URLs in their individual user profiles; this will get used when there is content authored by that particular author; otherwise, the author URL will default to the URL used for the Google Plus Default Profile option.

  5. plake777
    Member
    Posted 11 months ago #

    Peter,

    Already had that set in my individual profile. No matter what <ID> I put in the 'Google Plus Default Profile:' field, the SEO plugin creates both author and rel entries for that <ID>

    <link rel="author" href="https://plus.google.com/<ID>" />
    <link rel="publisher" href="https://plus.google.com/<ID>" />

    If you view source for my webpage (http://heartstonejourney.com/) you will see:
    <!-- All in One SEO Pack 2.0.1 by Michael Torbert of Semper Fi Web Design[368,375] -->
    <link rel="author" href="https://plus.google.com/105309913142828601164" />
    <link rel="publisher" href="https://plus.google.com/105309913142828601164" />
    etc.

    I can just clear and place the entries I need in the header, but its nice using plugin.

  6. Peter Baylies
    Member
    Plugin Author

    Posted 11 months ago #

    plake777,

    Yes, the Google+ profile URL from a user profile only gets used when there is a post by a particular author with a Google+ profile set as the content of the page. If you're using a static front page, and the author of that page has a Google+ profile set, then it will use that profile URL for the author meta field.

  7. plake777
    Member
    Posted 11 months ago #

    Peter,

    Thanks for the clarity on using a static page (which I am). Individual profile has the Google+ profile URL and the 'Google Plus Default Profile' has the Google+ Business Page Profile url. Checked it all out with the Structured Data Testing Tool and all is good. The static page piece was throwing me off. Appreciate the helps, thank you!

  8. Grace Massa Langlois
    Member
    Posted 11 months ago #

    Thank you Peter!

  9. Grace Massa Langlois
    Member
    Posted 7 months ago #

    Hi Peter,

    I'm still confused, if the Google+ Page id is popped into pages where an author isn't assigned this can confuse Google authorship and may cause the authorship snippet to not return. Google authorship is for individuals not business/brand.

    I don't think it's a good idea to have the Google+ Page appearing as author no matter what the circumstance is. Google Publisher tag should only be appearing on the home page. Is there anyway to correct this?

    Am I understanding this incorrectly? This is my dilemma, if I use the plugin to assign authorship and publisher because my home page is a listing of posts the Google+ Page id is attached as the author, this shouldn't be the case. The Google+ Page id should never populate in the authorship tag.

    I've removed the ids for now but please see snippet below for view source of the home page, my Google+ Page id is populating in both fields.

    <!-- All in One SEO Pack 2.0.3.1 by Michael Torbert of Semper Fi Web Design[983,1015] -->
    <link rel="author" href="https://plus.google.com/116455008338712344229" />
    <link rel="publisher" href="https://plus.google.com/116455008338712344229" />

    The author tag in this instance shouldn't populate because it's a listing of posts and according to Google authorship the tag should not be referenced on this page.

    Grace

  10. Peter Baylies
    Member
    Plugin Author

    Posted 7 months ago #

    miavitadolce,

    The publisher tag should only appear on the front page, so if that's showing up elsewhere, then that's definitely a bug. The author tag should show up on singular pages or posts and the Google+ id should correspond to the id entered into the Google+ Profile field for the author of that page or post. If you do not wish to do that on your site, then check the "Disable Google Plus Profile" option. Elsewhere, the author will default to the Google+ id of the publisher.

  11. Grace Massa Langlois
    Member
    Posted 7 months ago #

    Hi Peter,

    When you say the author will default to the Google id of the publisher than aren't you saying that the Google+ Page will become the author on pages other than the home page, if so it shouldn't be. As you can see the Google+ Page is the author of my home page, the page should never be the author of any content because it's a business and Google authorship is for individuals. For my home page the only tag that should appear because it's a listing of articles is the publisher tag.

    I hope I'm explaining myself.

    Grace

  12. Peter Baylies
    Member
    Plugin Author

    Posted 7 months ago #

    Grace,

    I think that was how they explained rel=author to people, but currently I haven't seen any actual restrictions on where it can be used; you can verify that with Google's Structured Data Testing Tool. I'll see about adding some more options for customizing these tags under the hood for people who want more control over where and how they appear.

  13. Grace Massa Langlois
    Member
    Posted 7 months ago #

    Hi Peter

    I help in the Webmaster Forums and I know that Google has made it very clear about authorship and that it is for individuals and publisher is for brands. They also state that the publisher tag should appear on home page - https://support.google.com/webmasters/answer/1708844?hl=en.

    Grace

  14. Peter Baylies
    Member
    Plugin Author

    Posted 7 months ago #

    Grace,

    Does the publisher tag not appear on the home page for you currently? As I said previously, the publisher tag should only appear on the front page, so if that's showing up elsewhere, then that's definitely a bug.

  15. Grace Massa Langlois
    Member
    Posted 7 months ago #

    Sorry Peter I didn't mean to confuse things, no it's not. Hopefully there will be a way to prevent the automatic population of the page id in the authorship tag.

    Grace

  16. Peter Baylies
    Member
    Plugin Author

    Posted 7 months ago #

    Grace,

    This should be possible in the next release; once it's out, I should be able to update this thread with a bit of code to further customize things.

  17. Grace Massa Langlois
    Member
    Posted 7 months ago #

    That's wonderful! Thank you Peter.

  18. afdel
    Member
    Posted 3 months ago #

    Hi Grace,

    If things work out as explained by Peter, I think it is ok.

    If every contributor has a profile set up with google plus, there is no cause for alarm because their posts will definitely be attributed wiith their google author profile.

    If perchance, a contributor doesn't specify author profile, is there anything wrong in attaching the post to the publisher being one of the author in the brand.

  19. lilly1995
    Member
    Posted 3 months ago #

    Hey Peter,

    I have a question if you can answer for me please?

    I just got my initial code to link to my website with the following Google+ code ==> https://plus.google.com/104788406268745768511" rel="publisher"

    Now, since this is my business page, then I have the same author writing on all my posts, then I would want to add this code in the "Additional Front Page Headers:" Advanced Settings section of AIOSEO right?

    But when I add that in, and then run it with http://validator.w3.org/ -- it is giving me the error message saying that i have a "Stray end tag </head>.

    So, I don't think it is working. Am I doing something wrong? Also,
    I already have this code in my Front Page headers -- so I don;t know if it is conflicting ==> <meta property="og:image" content="example.com"/>

    So, I just put your code on the line below it so it looks like this ==>

    <meta property="og:image" content="example.com"/>
    https://plus.google.com/104788406268745768511" rel="publisher"

    ---
    And 2 quick notes: I had to remove the (a href code) that surrounds these links above because It was just showing up as Google+ as a link ==> I also prefer to not use my Google+ page here, so I changed a couple digits, so these links are not working above, and its also no-ones link.... I made sure of that.

    Thanks in advance,
    Lilly

  20. Peter Baylies
    Member
    Plugin Author

    Posted 3 months ago #

    Hi Lilly,

    Please start a new thread for this, thanks. No, you don't need to enter in code in Additional Front Page headers - authors can add their Google+ profile ids in their profile and it will show up properly on their posts.

  21. Grace Massa Langlois
    Member
    Posted 2 months ago #

    Hi Peter,

    I'm back. I have another question. Google released this post in late August, <a href="http://googlewebmastercentral.blogspot.ca/2013/08/relauthor-frequently-asked-advanced.html
    ">rel="author" frequently asked (advanced) questions. The rel="author" tag should only appear on pages with a single article, is there a way to have the tag only appear on certain pages? I believe currently the tag appears on all pages except the home page and posts as well as the Media attachment pages. The tag is not appearing for category pages, archive pages or paginated pages.

    In my case and I'm going to assume for others as well, having the tag appear on pages like the About Page, Contact Page, Privacy Policy Page etc is against Google Authorship guidelines. Is there an option available to have the rel="author" tag only appear on blog post pages?

    Or is there an option to remove the tag from individual WordPress Pages (or Media attachment pages), for example, tick off this box if you would prefer the rel="author" tag to not appear for this page?

    The second option would probably be the better option because some WordPress users create a single article which sits on a WordPress Page (I hope this makes sense.)

    I've resorted to placing the tag manually so it only appears on Blog Post pages but some users prefer to implement via plugins like All In One SEO but unfortunately if they implement via the plugin the current tag placement placed the author in violation of the guidelines.

    Looking forward to your reply and I'm crossing my fingers that there is a way to implement correctly via the plugin and if it's not possible, maybe you could provide a solution.

    Grace

  22. Peter Baylies
    Member
    Plugin Author

    Posted 2 months ago #

    Hi Grace,

    While we don't have any per-post metabox options for this, currently the plugin does have filters in the code to allow you to control this, they are named aiosp_google_publisher and aioseop_google_author so for example if you had an about page with the slug 'about' you could prevent rel="author" from appearing on it like so:

    add_filter( 'aioseop_google_author', 'grace_prevent_rel_author' );
    function grace_prevent_rel_author( $author ) {
        if ( is_page( 'about' ) ) {
            $author = '';
        }
        return $author;
    }
  23. Grace Massa Langlois
    Member
    Posted 2 months ago #

    Hi Peter,

    Is there a way that you could write a little mini tutorial that I could pass on to All In One SEO plugin users in the Webmaster Forum? Google is looking at implementation closely for Authorship and placing the tag on appropriate pages is important. I also moderate in the Google Authorship & Author Rank community and this subject comes up quite often.

    To be frank, I'm not that experienced with code and most users I deal with don't have a lot of experience working with code either. I wouldn't have a clue where to place the code you provided above or how I would change it for say, the Privacy Policy Page.

    Grace

  24. Peter Baylies
    Member
    Plugin Author

    Posted 2 months ago #

    Hi Grace,

    Typically you'd place code like this in the functions.php file in your theme or in a plugin; if you wanted to do several pages you could do it like this:

    add_filter( 'aioseop_google_author', 'grace_prevent_rel_author' );
    function grace_prevent_rel_author( $author ) {
        if ( is_page( array( 'about', 'privacy-policy', 'contact' ) ) ) {
            $author = '';
        }
        return $author;
    }

    See also the WordPress Codex documentation for is_page(), that might help as well. I'll take a look at our plugin development roadmap and will see if it makes sense for us to add some more options here given Google's recent authorship changes.

  25. Grace Massa Langlois
    Member
    Posted 2 months ago #

    Hi Peter,

    I think I understand, currently because I couldn't get the plugin to do what I needed it to do I placed this code in my header.php:

    <?php if ( is_single() ) {?>
    <link rel="author" href="https://plus.google.com/+GraceMassaLanglois"/>
    <?php }?>

    Basically you can do something like this with the plugin but instead of placing in the header.php you're placing the code in the functions.php. Does it have to go in a certain spot in the file? I don't see any reference to the plugin in that file. I'm assuming it's better placed in the functions.php file because every time the plugin is updated any changes made in the current plugin files would be wiped out?

    To clarify I would use the title of the page, correct, for example, graces-bookshelf?

    Sorry for all the questions Peter I want to be absolutely certain I understand how this works if I'm going to be passing it on to other users. I don't want users to have to bypass using the plugin in order to be in compliance.

    Would there be an option to adding this feature to the plugin? I know Yoast made some adjustments so that users could easily implement the tag.

    Grace

  26. Peter Baylies
    Member
    Plugin Author

    Posted 2 months ago #

    Hi Grace,

    If that's all you want it to do, you could just paste that link tag by itself into the "Additional Post Headers" field in All in One SEO Pack. We are also currently looking into ways to make meta tags and other metadata and microdata easier to add in general.

    As for the code I gave you - it doesn't have to go in any particular spot in functions.php (but it is possible to break your site by just pasting code in at random); I'd say paste it in at the bottom, but not after the closing PHP tag, if there is one. Also, if there is a closing PHP tag at the bottom of functions.php you may safely remove it as well.

    In the is_page() function, to identify a page you may use the page ID, or the page slug, or the name of the page, as it says in the Codex.

  27. kellyjcoop
    Member
    Posted 2 months ago #

    Hi, the author tag is appearing on our homepage. How may I fix this?

Reply

You must log in to post.

About this Plugin

About this Topic