Sitemap ACF Not Found

#999195
  • Resolved Rama Angriawan
    Rank Math free

    I use the ACF plugin for custom post types, and use the sitemap from rank math

    I got a not found error in the sitemap that uses ACF

    So, what’s the solution?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    We apologize for the issue you are facing with the sitemap and the ACF plugin. If you are encountering a "not found" error in your sitemap that uses ACF, there are a few steps you can take to troubleshoot this issue:

    1. Flush Permalinks: Sometimes, flushing the permalinks can resolve sitemap issues. You can do this by navigating to Settings → Permalinks in your WordPress admin area and clicking the “Save Changes” button, even if you didn’t make any changes.
      Flush permalink settings

    2. Check ACF Settings: Ensure that you have enabled the ACF module under Rank Math SEO → Dashboard → Modules. This is necessary for Rank Math to include images from ACF fields in the sitemap.

    3. Verify Sitemap URL: Make sure you are accessing the correct sitemap URL, which should be something like `https://wordpress.org/plugins/advanced-custom-fields/.

    4. Plugin Conflicts: There might be a conflict with another plugin. You can use the Health Check plugin to identify any potential conflicts.

    5. Check for Custom Canonicals: If you have set custom canonical URLs for your posts, they may not appear in the sitemap. Consider removing custom canonicals to allow Rank Math to generate them correctly.

    If these steps do not resolve the issue, please reply to this ticket with your site URL so that a human agent from our support team can assist you further.

    Hello,

    Please ensure that at least 1 post under that custom post type is set to index.

    For troubleshooting, you may check this guide for the common reasons why a URL is not appearing in the sitemap:
    https://rankmath.com/kb/url-not-in-sitemap/

    If the issue persists, please follow these steps to flush your sitemap cache:

    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    3. Disable the transient cache for the sitemap by applying this filter. This will make sure that your XML sitemap always reflects the latest changes on your site:

    /** 
     * Filter if XML sitemap transient cache is enabled.
     *
     * @param boolean $unsigned Enable cache or not, defaults to true
     */
    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    If you’re not sure how to add this code, you can follow this guide:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Looking forward to helping you.

    error

    It’s still the same, no changes, and I also want to ask, why does an error like this appear?

    Hello,

    All your sub-sitemaps appear to be working correctly except the attachment sitemap,/attachment-sitemap.xml. This is likely because your attachment pages are set to noindex, so they can’t be included in the sitemap (webpages set to noindex are not included in the sitemap by default)

    If there is no specific need for it, you can disable the attachment sitemap.

    We hope this helps. Please let us know if you have further questions or concerns.

    Thank you.

    thanks, its work!

    Hello,

    Glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this ticket.