Forums

[Plugin: Google News Sitemap Generator] Custom Publication Name Needed, How to Edit Default 'Blog Na (2 posts)

  1. Shivaa
    Member
    Posted 2 years ago #

    Hi Chris,

    It's just two days my site was included in Google news. I am facing some problem regarding this 'Publication Name'.

    By default, our plugin takes this name as 'blog name'. Blog name is nothing but the page title.

    Now the publication name I mentioned in Google news application is 'mysite'. Well, the sitemap is showing it as 'mysite: rest of homepage title'. When I submitted this sitemap to Google, it didn't accepted saying 'the publication name in our database and publication name in the sitemap didn't match'.

    I am forced to change the homepage title just to 'mysite' which I mentioned in Google news application. This can hurt the SEO of my blog, and you too know it.

    I am talking about this particular line.,

    $xmlOutput.= "\t\t\t\t<n:name>";
    $xmlOutput.= htmlspecialchars(get_option('blogname'));
    $xmlOutput.= "</n:name>\n";

    Here, I want to show my publication name which was registered in Google news database. I tried to replace the 'blogname' with my Google news publication name. Same time, I want my full length page title to my site's index page.

    Waiting for a reply,
    Thanks in Advance.

    http://wordpress.org/extend/plugins/google-news-sitemap-generator/

  2. chris.jinks
    Member
    Posted 2 years ago #

    Hi Shivaa,

    To change the publication name in the code of the plugin please see the code below and replace the text PUBLICATION NAME with whatever you want...

    $xmlOutput.= "\t\t\t\t<n:name>";
    $xmlOutput.= "PUBLICATION NAME";
    $xmlOutput.= "</n:name>\n";

    That is hopefully the hack you where after, let me know how you get on.

    Chris.

Topic Closed

This topic has been closed to new replies.

About this Topic