Remove popupbuilder-sitemap.xml

  • I cannot find a way to remove from the general sitemap the popupbuilder-sitemap.xml. That option does not appear on the left panel under sitemap settings. Please advise on how to do it.
    Thank you in advance.

    • This topic was modified 2 months, 1 week ago by Mipadevi.
Viewing 15 replies - 1 through 15 (of 15 total)
  • Hi,

    Thanks for getting in touch with us.

    You can disable that sitemap from WordPress Dashboard > Rank Math > Sitemap Settings.

    If you already tried that, we need to know what plugin you are using to create the popups on your website so we can try to replicate the issue from our end.

    Thanks Todd. I already tried the “WordPress Dashboard > Rank Math > Sitemap Settings” and couldn’t find a way to get rid of it.

    The name of the plugin is “popup builder”.

    Hoping to hear from you soon.

    Hi,

    You can use this filter for that:
    https://rankmath.com/kb/filters-hooks-api-developer/#exclude-post-type-fro-sitemap

    We do not have a UI option for that particular plugin’s CPT sitemap.

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

    Thanks. I’ll check it out.

    Hello Mipadevi,

    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.

    Sorry guys, I reviewed the documentation shared by Todd but since I am not a developer, I wasn’t able to implement it. Can you guys assist with this issue: remove popupbuilder-sitemap.xml from sitemap_index.xml.

    Hello,

    Thank you for contacting Rank Math today.

    Please add the following filter on your theme’s functions.php file:

    /**
     * Filter decision if post type is excluded from the XML sitemap.
     *
     * @param bool   $exclude Default false.
     * @param string $type    Post type name.
     */
    add_filter( 'rank_math/sitemap/exclude_post_type', function( $exclude, $type ){
          $type = "popupbuilder";
    	return $type;
    }, 10, 2 );

    Looking forward to helping you. Thank you.

    ​​​​​​

    I added the filter as adviced but it is not taking effect. popupbuilder-sitemap.xml still appears on sitemap_index.xml. Please provide further instructions in order to remove it.

    Also, a side effect was produced. After clicking on post-sitemap.xml, a 404 error appears. So, I removed the filter you suggested.

    • This reply was modified 2 months, 1 week ago by Mipadevi.
    • This reply was modified 2 months, 1 week ago by Mipadevi.

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    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.

    Hi,

    I tried this code in the file:

    /**
     * Filter decision if post type is excluded from the XML sitemap.
     *
     * @param bool   $exclude Default false.
     * @param string $type    Post type name.
     */
    add_filter( 'rank_math/sitemap/exclude_post_type', function( $exclude, $type ){
          $type = "SG_POPUP_POST_TYPE";
    	return $type;
    }, 10, 2 );

    I got the name of the post type from this ticket on that plugin provider support section:
    https://wordpress.org/support/topic/permanent-url-field-disappeared-from-the-editor/

    But it isn’t working either.

    Please get in touch with them and ask them what the post type should be in this case. Feel free to refer them to this ticket or share the above code with them so they can assist you further on this.

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

    Thanks Todd. Whenever I receive their answer, I’ll come back to you guys to let you know their answer.

    Hello,

    That is fine, we will be here to help you and try to find a solution together.

    Thank you.

    Thanks Alberto. Still waiting for the plugins support answer… https://wordpress.org/support/topic/remove-post-type-in-sitemap/

    Whenever I have news, I’ll let you know.

    Hi Mipadevi,

    Cool! We are a ticket away should you need any other help.

    Thank you.

    Hello,

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

The ticket ‘Remove popupbuilder-sitemap.xml’ is closed to new replies.