• Hello.

    Thank you for your simple but very useful plugin.

    We found a problem while using it.

    Is it possible to output as lastmod for each taxonomy tag news-tag /wp-sitemap-taxonomies-news-tag-1.xml as the date of the last addition of a post with this tag, and NOT the date of the last change of the tag itself.

    Such a date of last modification of a page like /news-tag/dfgdfg would be more logical for Googlebot to bypass.

    The solution to the problem could not be found – they only suggest deleting the XML Sitemaps Manager plugin and replacing it with an alternative solution.

    Can you, as the author of the plugin, suggest a solution? Perhaps with the help of third-party code, but for it to work correctly in conjunction with the XML Sitemaps Manager plugin.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Hi, this has been applied in the current development version. If you wish, you can download it from https://wordpress.org/plugins/xml-sitemaps-manager/advanced/ (Advanced Options section) and install it via the WP plugin installer or via FTP.

    Let me know πŸ™‚

    Thread Starter arey

    (@arey)

    After installation, this version is added to the site with a critical error – screenshot.

    https://ru.paste.pics/c6db047175ae0c60b02cb85c6224b1f9

    Hi @arey thanks for reporting. It looks like a missing file… I’ll have a look at the SVN repo and let you know when it’s fixed.

    Ok, it should be fixed now. Please get a fresh zip download from https://downloads.wordpress.org/plugin/xml-sitemaps-manager.zip

    Thread Starter arey

    (@arey)

    Thank you. Now the plugin does not have a critical error now, but nothing has changed compared to version 0.5.

    1. lastmod for tags and categories (including parent categories), as before, is formed based on the date of creation/editing of tags and categories. It is necessary that the lastmod for taxonomies is formed based on the date of the last post added to the taxonomy.
    2. We also noticed that in version 0.6-alpha7 the lastmod for the main page of the site is formed by the date of creation of this page, which is also not entirely correct, since announcements of the latest published posts are published on the main page. It would be more correct for the lastmod for the main page to be formed based on the date of the last post published on the site or the lastmod for the main page of the site to NOT be displayed in the sitemap.

    Are there ways to solve these problems?

    Hi, if you have set your homepage to show latest posts in Settings > Reading, then the sitemap lastmod date for the homepage should reflect the latest publication date… Could you share a link to your sitemap?

    Thread Starter arey

    (@arey)

    As the main page of the site in the WordPress settings, a static page is set (with widgets for the latest posts).

    Here is a link to the sitemap.

    Ok, and did you set a “Blog” page?

    With a static site as the main page, the lastmod date will indeed be that pages modification date. If you have set a separate Blog page, then that page will have a lastmod that corresponds with the latest publication date.

    I will consider it a feature request: add an option to force the lastmod date of static homepages to the last publication date.

    In your (test) sitemap I notice you only have custom taxonomies. Maybe there is a problem there… Could you activate the default WordPress taxonomies (Categories and Tags) to see it they also have this lastmod problem on your site?

    Thread Starter arey

    (@arey)

    We activated the default WordPress taxonomies (categories and tags) and added a new post – there is also an issue with lastmod.

    Thread Starter arey

    (@arey)

    We didn’t create the “Blog” page because we don’t use standard WordPress Posts, but only custom post types (each post type has its own archive).

    I will consider it a feature request: add an option to force the lastmod date of static homepages to the last publication date.

    A small clarification: it is possible that lastmod is automatically updated not for all static pages, but only for those pages that are set as main ones (there can be 2 main pages, since there are two language versions of the site). Alternatively, it would be nice if you could specify the id of static pages for which you need to update the lastmod after the publication of new posts on the site.

    Which multi-language plugin are you using?

    Thread Starter arey

    (@arey)

    Polylang.

    I’ll have to work on full Polylang compatibility…

    Thread Starter arey

    (@arey)

    XML Sitemaps Manager version 5.0 works fine even with Polylang, but only has issues with lastmod.

    We hope that XML Sitemaps Manager will work even better in the future.

    XML Sitemaps Manager which multi-language plugin is 100% compatible with now?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Last Modified data does not work correctly’ is closed to new replies.