Which custom fields cause post to be included in sitemap?

  • Hello, I’m still searching for the issue behind my sitemap issues from the last ticket.
    Now I’ve been looking at the specific fields for the post type concerned. The issue affects only the post type “Listings” under the MyListing theme.

    I’m puzzled as to why a majority of posts are not even included in the sitemap despite being set to “index”.

    Could you tell me please, which custom fields exactly cause a post to be included or excluded in a sitemap? And what must they contain?

    I’ve noticed some fields where the content seems to differ in my posts, could any of these be triggering a problem/exclusion?:
    rank_math_permalink
    rank_math_primary_job_listing_category
    rank_math_snippet_jobposting_unpublish
    any others?

    Thanks in advance,
    Cheryl

    ____________________________________
    FIXED! Rank Math Sitemap only shows the posts which are marked as index and whose canonical URL matches with the post URL. Also check for http vs. https in the canonical! > That did the trick!
    ____________________________________

    • This topic was modified 1 month ago by Cheryl.
Viewing 3 replies - 16 through 18 (of 18 total)
  • Hello,

    Rank Math Sitemap only shows the posts which are marked as index and whose canonical URL matches with the post URL. On your site, the Canonical URL of the posts which Sitemap is not showing has http and your site is on https

    Is there any reason why you are adding HTTP in canonical?

    I hope that helps.

    Hey Pratik!

    Thank you sooo much!!! That was just the exact detail I was missing!! I thought there must be something on the posts that was triggering an exclude from sitemaps, but couldn’t figure out what it was. The canonical! Thanks for this info! You made my day 🙂

    By the way, I have no idea why the canonicals are http… I’m sure they didn’t use to be… something must have gone wrong during a server move or new installation or import or something… Thanks so much for pointing it out!

    All the best,
    Cheryl

    Hello Cheryl,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 3 replies - 16 through 18 (of 18 total)

The ticket ‘Which custom fields cause post to be included in sitemap?’ is closed to new replies.