WordPress.org

Ready to get started?Download WordPress

Forums

XML Sitemap & Google News feeds
[resolved] Ping Webmaster tools (6 posts)

  1. kingbt
    Member
    Posted 1 year ago #

    This plugin has a big problem: it does not ping the googlebot via Webmaster tools.

    The code below will help ping it but should be on publish_post action or something like it.

    $base = $GLOBALS['wp_rewrite']->using_index_permalinks() ? 'index.php/' : '';
     $sitemapurl = urlencode( home_url( $base . 'sitemap.xml' ) );
    
     wp_remote_get( 'http://www.google.com/webmasters/tools/ping?sitemap=' . $sitemapurl );

    The code is not for multisite!

    http://wordpress.org/extend/plugins/xml-sitemap-feed/

  2. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    Hi kingbt,

    Not pinging is by design as it does not (seem) to change much. Google will crawl in it's own time anyway. Of course, this is open for discussion but that is what I have noticed... In fact, not pinging seems to increase the bot visits as if it grows lazy waiting for the next ping, missing all kinds of comment activity on the site. I have no proof for this but it is an observation.

    Plus, when I started with the plugin, WordPress used the ping-o-matic service by default. Is this still the case? I don't know because I only work with multi-site these days.

    In any case, I have pinging (as an option) on the todo list for a coming version but it has no high priority in my mind. But seeing you call it a 'big problem', you feel differently, I presume?

    Please argue your case ;)

  3. kingbt
    Member
    Posted 1 year ago #

    My content is NOT on the first page where the pagerank is big and where googlebot crawls it hourly, so the only way to notify google about my content is via the sitemap and a ping (how I described it above).

    With a ping the new content is indexed within seconds, else (with no ping) it is indexed in hours/days.

    Ping o matic should work when your content is in the latest 10 posts on the main feed. If it isn't than it is useless.

  4. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    OK, I see your point... I'll move the ping feature up the todo list ladder. But I cannot promise anything soon because I'm a bit busy at this time.

    By the way, why would your code not be for multisite?

  5. kingbt
    Member
    Posted 1 year ago #

    I have not tested the code on multisite but should work fine.

    By the way, nice plugin.

  6. luutoan
    Member
    Posted 4 months ago #

    thanks you. i working

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags