Astrogle
Forum Replies Created
-
none.. i haven’t changed anything in admin dashboard since long time.
suddenly noticed error messages in google webmastertools dashboard yesterday about this dateusing same plugin with same site settings on another sites but they’re okay
Forum: Plugins
In reply to: [XML Sitemap Generator for Google] Hours until Google finds my postslol
same was the case with me.
when i didnt have a sitemap, google crawled my site daily and added new links.
now with all these sitemaps, google visits once/weekSub-module file: taxonomy_category.php is not available in both default and custom module directory. The plugin will now try loading the parent module instead.
this is the error i see now and https://www.astrogle.com/taxonomy_category.xml have dates of 1969 !!!!
and even after editing sitemapindex.php date doesnt change
i flushed the cache and checked again.even https://www.astrogle.com/taxonomy_post_tag.xml have 1969 date.
i’ve on more issue.
https://www.astrogle.com/post.xml In this sitemap, 2nd link is latest published post on 8th april.
But https://www.astrogle.com/sitemapindex.xml and its 4 sitemaps show last modified date as 6th aprilactually the one you suggested is best.
$data[‘lastmod’] = $this->format_lastmod(strtotime($post->post_date));
that line does what is necessary.
ignore my other postwell.. actually the approach you suggested is the best.
if a post is modified, it just moves to the top of sitemap, may be requesting a revisit by bot, but its original published time is shows as modified time, which helps the link to given more priority (if similar content links or copied pages are elsewhere with later dates)Thanks.. this worked.
May be if it takes whichever date is latest by comparing post_modified (VS) post_date , it would make better sitemap.xml
(just a thought, may be useful for future updates of this plugin)okay it didn’t work for newly published post.
if you look at the sitemap i linked above, out of the 2 posts published on 1st april, top one was actually scheduled to be published today (and it was published few hrs back).
But it was written (last modified) on 1st april and now sitemap shows that date but not published datei added it in theme’s functions.php but still sitemap shows modified time, not scheduled time
i mean where to add the filter (which file?)
i write once in a month and schedule posts to be published two or three per week.
So, the time difference will be a lot if i schedule now and its published next month.
Manually updating makes the idea of scheduling the posts go useless.
Is there any way i can make this use ‘post_published’ field in database instead of post_modified field ?or how to add a filter to update post_modified field automatially
https://www.astrogle.com/post.xml
see the top post was published(as scheduled) at 2nd april 2013, 00:45 hrs GMT
but it was written(last modified) at 9:52 GMT on 1st april and xml sitemap doesnt show published/scheduled timeyes..this worked
thanks