Google News Sitemap

Grazie a questo plugin è possibile generare in automatico una sitemap per google news basata sulle specifiche di google.

Potete trovare il plugin qui:

http://www.andreapernici.com/google-news-sitemap.zip

oppure

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

Versione 1.0.6

  • bug fix for post category exclusion

Versione 1.0.5

  • bug fix

Versione 1.0.4

  • added exclude categories option
  • added exclude posts option

Versione 1.0.3

  • htmlspecialchars added in title tag  (thanks to technabob)

Versione 1.0.2

  • Graphic upgrade
  • Bugfix for genres select box

Versione 1.0.1

  • Graphic upgrade of admin interface.
  • Added xml escaping for loc url.
  • Added complete list of genres options.
  • Added automatic generation on post, page update and post, page delete.

Versione 1.0.0

Molte grazie a Ciak! Prestiti e Mutui per un piccolo finanziamento per la realizzazione.

Installazione

Aggiornamento

  • Prima disattivate Google News Sitemap
  • Rimuovete la cartella `google-news-sitemap`

Installazione

  • Decomprimete il file `google-news-sitemap.zip`.
  • Inviate la cartella `google-news-sitemap` nella vostra cartella dei plugin `wp-contents/plugins`.

Attivazione

  • Nel vostro pannello admin di WordPress andate nella pagina dei Plugin
  • Attivate il plugin Google News Sitemap e apparirà una sottopagina nel menu Opzioni.

Se riscontrate bug segnalatemeli.






179 Risposte so far.

  1. Andrea scrive:

    Ah ecco cosa mi esce

    ‘Error: there is a problem with sitemap-news.xml. It doesn’t exist or is not writable. For help see the plugin’s homepage.’

    Ciao

  2. Allora così il problema è risolto. Devi settare i permessi di scrittura su tale file o nelle directory che lo contiene.

  3. I’ve added post and category filters to the plugin.

  4. [...] Link di download e maggiori informazioni sulla pagina dedicata al plugin. [...]

  5. Francesco scrive:

    Ciao, in che senso?

    sono state aggiunte funzioni al plugin? devo aggiornare la versione?

  6. @francesco sono state aggiunte funzioni e se hai già installato il plugin ti comparirà nel pannello admin l’aggiornamento altrimenti lo scarichi dai link che trovi in questa pagina.

  7. Giuseppe scrive:

    L’ultima versione la 1.0.4 su Wordpress 2.8.6 non genera la mappa, e questo è l’errore nella pagina di google webmaster tools:

    Tag XML mancante
    Questo tag obbligatorio risulta mancante. Aggiungilo e reinvia.

    per la precisione genera soltanto questo:



    ciao
    Giuseppe

  8. Giuseppe scrive:

    ho dimenticato i tag code, scusa




  9. @Giuseppe sei sicuro di aver scritto articoli negli ultimi 2 giorni ?

  10. Giuseppe scrive:

    Si diverse decine al giorno. Ho anche fatto il salva e rigenera. Via ftp vedo che è stata scritta in quel momewnto ma contiene solo i crediti nel tag urlset

    ciao e grazie
    Giuseppe

  11. @giuseppe hai controllato che la versione di wordpress sia idonea ? Mi puoi dare un link ?

  12. Soverato News scrive:

    Eccomi con il link, la versione è l’ultima la 2.8.6. In genere installo sempre l’ultima a volte mi capita di avere anche le beta, ma non in questo caso. Ripeto la cosa strana eè scrive la sitemap, soltanto il credito però.

    ciao e grazie
    Giuseppe

  13. Mamo scrive:

    Hello,

    First of all, thank you for creating the plugin.

    My sitemap-news.xml file shows the following error:

    Line 7
    Missing XML tag
    This required tag is missing. Please add it and resubmit.

    Can you please tell me how to fix it?

    Thanks

  14. @Soverato News Pare che non trovi articoli. Hai selezionato le categorie da cui attingere ? Hai escluso qualche cat ?

  15. @Mamo can you show me your sitemap ?

  16. I’ve released the 1.0.5 version that fix a bug in the generation.

  17. Giuseppe scrive:

    Ok, dopo il bugfix la mappa viene generata regolarmente.

    grazie

  18. Jason scrive:

    Dear Andrea,

    did you change something on your google news plugin. Can it be that posts without numeric digets will not be shown on google news. I had one post without numeric digets, it did not go through. After I added numeric digets it got through.

  19. Joe G scrive:

    After I install the plugin and press Save & Rebuild I see that the file sitemap-news.xml is created (on the root) but it never increases past 157b. We have over 26k stories in the database and release on average of 30-40 per day. I’ve even waited a few hours before emailing you and making sure that new posts/articles have been published. The file never changes. I did create sitemap-news.xml.gz and give it 777 (permissions). Still nothing. Do you have any advice or suggestions?

    Thanks in advance

    Joe

  20. Hi @Joe G you’re welcome. The file that is created is without gz. Can you please look at your error_log if possible. Maybe we can find the mistake.
    Your WP version ?

  21. [...] Google News SitemapSociable ItaliaPlugin Wordpress per generazione di Google News SitemapUpdate per il mio plugin Google News SitemapGoogle Lancia le API di Friend ConnectCome fare Redirect 301 di una pagina webSociable wordpress plugin – aggiunti i social italianiI due migliori software Open Source di MicroBlogging (per creare Cloni di Twitter) + 1 commercialeRich Category EditorInside Buildings di Giacomo Della Villa e Domus Regia: lavori in casa a Bologna [...]

  22. New release is available. Please update and let me know about if your errors are solved. Thanks.

  23. Mike scrive:

    Hi Andrea,
    the post time in sitemap-news.xml is:

    2010-01-08T15:16:28Z

    But the time in post-article is 16:16.

    1h mismatch, is it correctly?

    Regards Mike

  24. @Mike strange I’m goingo to check.

  25. Vincenzo scrive:

    Salve Andrea,
    inanzitutto complimenti per il plugin, davvero utile..
    Stasera l’ho installato su uno dei miei portali, ma a quanto pare non funziona, o meglio, il file è stato creato ma con solo questa stringa all’interno:

    Ho l’ultima versione di wordpress installata..
    Cosa potrebbe essere?
    Un saluti

  26. Vincenzo scrive:

    Non si vede la stringa, proviamo così:

    ?xml version=”1.0″ encoding=”UTF-8″?urlset xmlns=”http://www.sitemaps.org/schemas/sitemap/0.9″ xmlns:n=”http://www.google.com/schemas/sitemap-news/0.9″ /

    Ho levato i vari di apertura e chiusura

  27. @Vincenzo hai scritto articoli negli ultimi due giorni ?

  28. Vincenzo scrive:

    Ciao Andrea,
    sisi, forse ne erano anche troppi.. infatti stamattina controllo e vedo che ha generato la sitemap..
    Dagli strumenti per i webmaster di google, noto però che la sitemap ha degli avvisi, tutti identici ma cambiano la riga dell’avviso…

    Lo stato dell’avviso dice:
    Valore tag non valido
    Il valore di questo tag XML non è valido. Modificalo e reinvia.
    I dettagli:
    Tag principale: news
    Tag: genres
    Valore: PressReleases
    Problema rilevato su: 11/gen/2010

    Cosa può essere?
    Inoltre volevo sapere, il tuo plugin rigenera la sitemap ogni qualvolta creo nuovi articoli o la devo rigenerare manualmente?
    Grazie, ciao

  29. @Vincenzo ok prova a togliere il tag genres per capire se google ha cambiato le specifiche.

    Il plugin in teoria deve generare la sitemap in automatico alla creazione o aggiornamento del post quindi se non lo fa c’è un problema.

  30. Vincenzo scrive:

    Ok, ma è normale che ci metta un pò di tempo a rigenerarla?
    Ho fatto la modifica, salvato, ma ancora non la rigenera, e son passati un 10minuti buoni..

  31. @Vincenzo no non è normale…controllerò la causa e nel frattempo rigenerala a mano.

  32. Vincenzo scrive:

    Può esserci mica un problema di permessi, o conflitti con qualche plugin che ho?

  33. @Vincenzo non saprei visto che non so i plugin che hai e comunque tutto è possibile. Io ora controllo se per caso il problema è dato dall’ultima versione di WP.

  34. Vincenzo scrive:

    Forse qualche conflitto c’è…
    Ti spiego:
    creando un nuovo articolo e facendo pubblica, mi porta ad una pagina completamente bianca, quando invece dovrebbe ritornare all’articolo indicando la corretta pubblicazione dello stesso..
    Dopo vari smanettamenti, ho disattivato il tuo plugin e sembra funzionare di nuovo…
    E’ un indizio? Saluti

  35. @Vincenzo ok allora è un conflitto con qualche plugin che hai.

  36. Vincenzo scrive:

    Potrebbe aiutarti se ti faccio una lista dei miei plugin?

  37. Puoi elencarmeli e al massimo posso capire quali non causano conflitto in modo ad andare per esclusione.

  38. Vincenzo scrive:

    Eccoteli:

    Contact Form 7
    Executable PHP widget
    Google Analyticator
    Google XML Sitemaps
    Limit Posts
    MailChimp
    Platinum SEO Pack
    Redirection
    SEO Friendly Images
    WordPress Database Backup
    WordPress Related Posts
    WP-Polls
    WP-PostViews
    WP No Category Base

    Per la cronaca, ho provato “Google News Sitemap Generator” di Chris Jinks e sembra funzionare, anche se comunque ha molte meno funzioni rispetto al tuo plugin (inoltre nn posso cambiare la lingua in it, resta en)..

    Sperando di riprovare il tuo plugin, ti saluto e ti ringrazio..

  39. WP-Polls
    WP-PostViews
    Limit Posts
    Contact Form 7
    Google XML Sitemaps
    WordPress Database Backup

    Di sicuro non causano il conflitto.

    Ad occhio credo che potrebbe essere uno di questi quattro:
    Platinum SEO Pack
    Redirection
    SEO Friendly Images
    WP No Category Base

    Riesci a provare a fare un test ? Se non riesci lo faccio io in qualche dominio di test.

  40. Vincenzo scrive:

    Non vorrei approfittarmene, ma se riesci a fare te queste prove te ne sarei grato…

  41. Ho fatto il test e non riscontro nessuna incompatibilità. Bisognerebbe capire cosa succede sul tuo sito. Se hai la possibilità controlla gli error_log del tuo server.

  42. Vincenzo scrive:

    Nel file error_log da effettivamente un errore che ripete sistematicamente ogni 2-3 secondi, come se fosse in un loop infinito…
    L’errore è questo:
    [11-Jan-2010 16:59:09] PHP Parse error: syntax error, unexpected T_ELSE in /xxxx/xxxxxxxx/xxxxxxx/wp-content/themes/xxxxxxx/404.php on line 10

    I problemi della sitemap potrebbero derivare da questo errore?

  43. erz scrive:

    Thank you for your work!
    I am, however, unable to use your plugin and the reason why some people experience an error with writing permissions might be that they have their wordpress installation in a subfolder rather than the usual root installation.

    At least that seems to be my problem and is something I already had a lot of trouble with getting the regular sitemap to work. I was trying to come up with the correct sitemap path for your plugin, but to no avail so far.

    the root folder for my hoster is something along the lines of /www/htdocs/USERNAME/ My installation rests at http://DOMAIN.COM/wp11/ How can I tell your plugin to look for the sitemap-news.xml there? I assume an error in the autodetection of the path, as that has been a cause for problems in the past.

  44. erz scrive:

    And now I can actually provide the solution myself: Instead of fiddling around with the absolute path I simply told the plugin to go up two directories – and there it found the empty document I already uploaded to the root folder and modified it.

    so in the path enter ../ instead of ./ when you are using wordpress in a subdirectory.

  45. Hi @erz and Thanks for your suggestion for errors. I’ll going to check this issue…and I hope to solve it as soon as possible.

  46. erz scrive:

    @andrea
    You are welcome. Those who do have wordpress in a subfolder should be warned that their relative paths are easily confused (as I said, it has been an issue with other plugins in the past – and many wordpress users are to this day unaware of the problem unfortunately) and the remedy should be rather straightforward.
    All the best!

  47. So I will write this solution in the documentation for next release. Crediting you. Thanks.

  48. prestitotto scrive:

    Ciao Andrea,

    webmaster tools mi segnala il seguente errore:

    Valore tag non valido
    Il valore di questo tag XML non è valido. Modificalo e reinvia.
    Tag principale: news
    Tag: genres
    Valore: PressReleases
    Problema rilevato su: 28/gen/2010

    la mia sitemap è raggiungibile al seguente indirizzo:
    http://www.prestitotto.it/sitemap-news.xml

  49. Ciao @prestitotto. L’errore è causato da genres quindi eliminando la spunta da lì dovresti risolvere. Molto probabilmente google ha modificato le linee guida. Andrò a controllare.

Leave a Reply