support custom post type in sitemap

  • hello, rankmath support team, I want to add a custom post type my in sitemap
    but I didn’t find the rank math hooks and filters for doing that

    here is my code is working on Yoast SEO plugin

    a colleague from your support team on WordPress plugin page answered me
    with this code

    unfortunately, didn’t work for me I think some function needs to change too like
    public function get_index_links
    and function get_sitemap_links

    this function is for yost seo and I’m not able to find rank math one

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I think you should check this thread where a user had a similar question and it was solved with some hooks Rank Math offers:

    Looking forward to helping you. Thank you.



    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘support custom post type in sitemap’ is closed to new replies.