jojobetty
Member
Posted 2 years ago #
Hi,
Today I updated the google news sitemap plugin, thank you!
But now we have a problem, the language is English: <language>en</language> , but it must be: <language>nl</language> (Dutch language). How can I change this, because Google Webmaster is not accepting our newsmap, it says the language is wrong. I hope you can help me.
Thank you!
Betty
http://wordpress.org/extend/plugins/google-news-sitemap-generator/
chris.jinks
Member
Posted 2 years ago #
Hi Betty,
The language is taken from the WordPress database option of 'rss_language' not sure how you update this from the WordPress dashboard?
You can either:
Change the value in the MySQL database to nl.
-or-
Modify line 177 of the file google-news-sitemap.php from "$xmlOutput.= get_option('rss_language');" to "$xmlOutput.= nl;".
Hopefully with the next update I will add this as an option in the WordPress Plugin control panel.
Chris.
chris.jinks
Member
Posted 2 years ago #
* Sorry, should be: "$xmlOutput.= "nl";" for the modification. *
jojobetty
Member
Posted 2 years ago #
Thank you Chris! We will try:)
jojobetty
Member
Posted 2 years ago #
Not working, we are doing something wrong, I know. But after we did what you said, we get an error. So we are afraid to try it again.
fneumeier
Member
Posted 2 years ago #
The solution is pretty simple: Go to yourdomain.com/wp-admin/options.php and change the value for rss_language to nl (or what ever language you desire).
Franz
delightfd
Member
Posted 2 years ago #
hi!
I've just installed tis plug in and it looks nice! I'd like to change the default language, I've taken a look inside the file options.php but "rss_language" doesn't exists, neither in opstion_general.php.
Do you know where can I find it? Thank you in advance
chris.jinks
Member
Posted 2 years ago #
fneumeier is correct, put the following URL into your web browser (replacing http://www.yourdomain.com for your actual domain name ). Do not open the PHP file as it is not in the code.
http://www.yourdomain.com/wp-admin/options.php
Search for rss_language and change it to the 2 letter code of your desired language.
List of language codes here.
delightfd
Member
Posted 2 years ago #