WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Google News Sitemap Generator] Category keywords (31 posts)

  1. JeanPaulH
    Member
    Posted 5 years ago #

    Thanks for this useful plugin, but you're using an old (pre WP 2.3) query for the category keywords. The new database schema was introduced in this post by Ryan Boren. Could you please update the plugin so the category keywords start to work for us on newer WordPress versions?

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

  2. chris.jinks
    Member
    Posted 5 years ago #

    Hi djr,

    Thank you for your feedback.

    This is my first release of this new plugin and your feedback is very useful.

    The next release will be compatible with WP 2.3+ and will include a comprehensive admin menu with many more features!

  3. chris.jinks
    Member
    Posted 5 years ago #

    V1.1 should now be compatible with the 2.3+ WordPress taxonomy.

    Keywords are auto-generated from the category of the posts.

    Any problems or suggestions for future development, please let me know!

  4. JeanPaulH
    Member
    Posted 5 years ago #

    Hi Chris. Thanks for the fix. However, there's an error in the plugin. Your check for the WordPress version is the other way around (line 53 in google-news-sitemap.php).
    if ( get_bloginfo('version') > 2.3 )
    This needs to be:
    if ( get_bloginfo('version') < 2.3 )

    I guess the admin menu didn't make it in version 1.1? I can't seem to find it in the Dashboard or in the plugin file.

  5. chris.jinks
    Member
    Posted 5 years ago #

    Thanks for pointing that out, I was testing on a earlier version of WordPress and everything seemed to be running ok. Let me know if you spot anything else as this is still very much a beta version.

    The admin panel has not been developed yet, but I have plenty of ideas for custom settings!

    Please let me know how you get on with this plugin, all comments/suggestions for future releases kindly received.

  6. Julia MacKenzie
    Member
    Posted 5 years ago #

    Hi Chris,

    Any idea how i can personally fix the keywords not showing in the sitemap? Doesnt seem to be auto generating for me. Im using the latest version of WP.

  7. john_nyc
    Member
    Posted 5 years ago #

    I installed this plugin, created a writable sitemap file as required and when i try to generate the sitemap i get this error:
    Fatal error: Call to undefined function add_action() in /home/johntp75/public_html/wp-content/plugins/google-news-sitemap-generator/google-news-sitemap.php on line 149

    any ideas????
    line 149 is: add_action('publish_post', 'write_google_news_sitemap');

  8. helzerman
    Member
    Posted 5 years ago #

    It's not working for me either. Please let us know when you have a fix for the issues posted by Julia and John_NYC. I'd love to use this plug in. Thanks for developing it!

  9. chris.jinks
    Member
    Posted 5 years ago #

    Hi Guys,

    Sorry for the delay in a response, I have been busy with other projects.

    A new version of this plugin will be avaliable soon with an admin interface and bugs resolved.

    Thank you for your feedback and help testing this beta version.

  10. oppe
    Member
    Posted 5 years ago #

    Hi Chris,

    Is there any news of the fix for the problem:

    Call to undefined function: add_action() line 149?

    I installed the latest version today.

    Cheers

  11. chris.jinks
    Member
    Posted 5 years ago #

    Hi,

    Everyone who was getting the "line 149" error - this is because you are directly accessing the plugin script in a attempt to generate the sitemap. This is not necessary, just save/publish/delete a post from the normal WordPress admin panel to auto-generate the Google News Sitemap.

    A new version of the plugin (v1.2) has been release today with general bug fixes, easy to understand instructions and a new settings panel to modify basic settings when generating the sitemap.

    Any problems or feedback is welcome to help me develop the next version of this plugin.

    Many thanks,

    Chris

  12. stats101
    Member
    Posted 5 years ago #

    I spotted a few areas of improvement. It currently doesn't create a sitemap for future scheduled posts. Also, it doesn't automatically notify google of the updated sitemap. Has anyone found out a hack to overcome this?

    stats101

  13. bjorn2404
    Member
    Posted 5 years ago #

    Nice plugin.

    If you're using < MySQL version 4.1.1 this won't work because of the DATEDIFF function (I'm using 4.0.x). To get it to work you can replace:

    AND (DATEDIFF(CURDATE(), post_date_gmt)<=3)

    with

    AND ((TO_DAYS(CURDATE()) - (TO_DAYS(post_date_gmt))) <= 3)

    ~line 146 in google-news-sitemap.php

  14. joshuajcohen
    Member
    Posted 5 years ago #

    Is there anyway to restrict this plugin to only pull posts published under a specific category? I have two main sections of my site and I know Google News won't like one of them, but is a-okay with the other.

    If so, please let me know. Thanks! - Josh

  15. rhythmdoctor
    Member
    Posted 5 years ago #

    I too love this plugin but since upgrading to 2.7 - It is no longer working. Please advise as to the status of supports/updates, etc....

  16. chaz7979
    Member
    Posted 5 years ago #

    Is there anything similar for 2.7?

  17. chaz7979
    Member
    Posted 5 years ago #

    I actually just installed this on 2.7 and it seems to be working fine.

    My options are set to not add pages and not to include tags. Hope that helps. Maybe the guy who made the plugin will chime in.

  18. Loewenherz
    Member
    Posted 5 years ago #

    Thanks, it works with WP 2.7.1. I hope, Google accept this google-news-sitemap.xml as a News Sitemap. Thanks for this work!

  19. alukeonlife
    Member
    Posted 5 years ago #

    I'm using MySQL 5 on a server and its not writing anything other than the header as below - I tried the code above but its the same.

    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
    			xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
    </urlset>
    <!-- Last build time: March 23, 2009, 1:41 pm-->

    Anyone got any ideas?

  20. gaj
    Member
    Posted 5 years ago #

    The plug-in works for me fine on 2.7, it would be better if you could build the sitemap for a category as all my news is in my news category.

  21. peps974
    Member
    Posted 5 years ago #

    It works fine for me too on WP 2.7.1; but I am, as gaj, looking for a way to specify a category to look on. Is there anyone there a bit experienced to help us tweak that code to only look at posts within a certain category ?

  22. Vizworld
    Member
    Posted 5 years ago #

    I really like this plugin, but I have to echo what someone else said: It doesn't work for future-scheduled post. I tend to generate posts in bulk (5 or so at a time) and schedule them to post at 30-min/1hour intervals, and this plugin won't regenerate the sitemaps.

    Anyone know how to fix this? I tried adding the following:

    add_action('publish_future_post', 'write_google_news_sitemap');
        add_action('private_to_published', 'write_google_news_sitemap');

    But those don't help either.

  23. cjinks
    Member
    Posted 5 years ago #

    Thanks for all the feedback, I will be testing a revision of this plugin with all the new features requested and hopefully be releasing it soon.

    Revisions will include:

    • Future scheduled posts action
    • Category filtering
    • Updated control panel/instructions

    Let me know if I have missed something.

    Chris

  24. JeanPaulH
    Member
    Posted 5 years ago #

    Hi cjinks,

    Could you also please take into consideration recent changes in the News sitemap format (specifically news:publication_name and news:language). I think these are mandatory now.

    http://www.google.com/support/news_pub/bin/answer.py?answer=74288&topic=11666

  25. rhythmdoctor
    Member
    Posted 5 years ago #

    Very cool cjinks. Cant wait for the new release as the old one has been having some problems ever since 2.7. Looking forward to it.

  26. saif270
    Member
    Posted 5 years ago #

    When is the new release going to be available?

  27. Richard
    Member
    Posted 5 years ago #

    a <news:title> would be nice to.

    Can't wait till the new release

  28. chris.jinks
    Member
    Posted 5 years ago #

    Hi all,

    The new release (v1.3) has been made available today.

    It has all the new additions as requested and the admin interface has been improved.

    Give it a go and let me know if you have any problems, only tested on latest (2.8.2) WordPress installation.

    Download Google News Sitemap Generator Plugin for WordPress

    Chris

  29. randompage
    Member
    Posted 5 years ago #

    hi chris,

    i just install your plugin and found some errors on admin page.
    line 319:
    $excludedCats = get_option('googlenewssitemap_excludeCat');

    $excludedCats used in line 322 if (in_array($cat->cat_ID,$excludedCats)), it may generate warning errors if $excludedCats is not an array.

    for the time being i add one line after line 319, here is the complete codes:
    $excludedCats = get_option('googlenewssitemap_excludeCat');
    if (!is_array($excludedCats)) $excludedCats= array();

    regards,

  30. randompage
    Member
    Posted 5 years ago #

    just another tough:

    maybe a link to force the update from admin area will be good addition for the next release.

Topic Closed

This topic has been closed to new replies.

About this Topic