sitemap producing incorrect urls for directorist plugin

#248757
  • Resolved Lewis
    Rank Math free

    Hi

    I am using the directorist plugin https://directorist.com/ and have rankmath generating sitemaps

    I have noticed that the URLs in the sitemaps are incorrect as they seem to be parsing a variable ‘%atbdp_listing_types%’ as opposed to the listing category

    I have included a link to the sitemap in the sensitive data section along with some example URLs

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

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    It seems the directory plugin is generating those URLs on the fly as Rank Math is generating the sitemap on the backend. Have you tried contacting the Directorist support for this?

    With that said, we would like to further investigate this over your admin settings.

    Please edit the first post on this ticket and include your WordPress login 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.

    Lewis
    Rank Math free

    Hello,

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

    Thank you.

    Lewis
    Rank Math free

    Done thanks!

    Hello,

    We have placed a code inside your theme’s functions.php file that filters those URLs before getting added to the sitemap and outputs the correct URL.

    This is the code snippet:

    
    add_filter( 'rank_math/sitemap/entry', function( $url, $type, $object ){
        $url['loc'] = str_replace("%atbdp_listing_types%", "skatepark", $url['loc']);
        return $url;
    }, 10, 3 );
    

    Hope this helps solve your issues.

    Don’t hesitate to get in touch if you have any other questions.

    Lewis
    Rank Math free

    That’s incredible service for a free plugin! That’s worked perfectly, thanks so much.

    Anas
    Rank Math business

    Hello,

    We are super happy that your issue is resolved. 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 6 replies - 1 through 6 (of 6 total)

The ticket ‘sitemap producing incorrect urls for directorist plugin’ is closed to new replies.