Post Page is showing in Posts-sitemap instead of page sitemap

#810239
  • Resolved Deepak Bhinde
    Rank Math free

    On my blog I have set homepage as home and post Page as blog. In sitemap this page is showing in posts-sitemap. I am also not able to change schema type in this page it is collectionbadge. Which is okay but I want this page to be in the page-sitemap . How to do it

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    The blog page should be created under your WordPress Pages.

    Also, since you made that page a “Blog” page for your posts, it will become your post archive page, which will automatically be included in your post sitemap.

    However, to remove that page in your post sitemap, you may need to use this filter on your site:

    add_filter( 'rank_math/sitemap/post_type_archive_link', function( $archive_url, $post_type ){
    if ($post_type == 'post'){ // match to the actual post type name
    	$archive_url = false;
    }
    	return $archive_url;
    }, 10, 2 );

    And here’s how you can add a filter/hook to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps.

    No, it is still showing in the post-sitemap. I also tried deactivating other plugins but the issue still exists.

    Hello,

    Please confirm if the blog is a physical page and can be edited in the backend. If you want us to take a closer look, please edit the first post on this ticket and include your WordPress logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    We excluded the blog page using its ID from Rank Math Settings under Rank Math SEO > Sitemap Settings > Exclude Posts.
    https://imgur.com/ybgGSKr

    It now no longer appears in your post sitemap.

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    i want this page in the page-sitemap.That is what I was trying to do.

    Hello,

    Please note that the purpose of the sitemap is to tell Google about your URLs. It doesn’t matter to Google if your URL is on the page sitemap or post sitemap. When you select your Blog page to show your latest posts, it becomes a list of your posts and that’s why Rank Math adds this to the post sitemap.

    However, we added a filter on your Code Snippet plugin and now the blog page is appearing on your page sitemap, not in the post sitemap:

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    Thank you.

    Thank You

    Hello,

    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 9 replies - 1 through 9 (of 9 total)

You must be logged in to reply to this ticket.