altugdesign
Forum Replies Created
-
I don’t know why this is marked as “Resolved”
It is not working.
1- Added the code to my functions.php
2- From the /wp-admin/admin.php?page=rank-math-options-sitemap -> I closed + saved + reopened sitemap images button + saved
3- ctrl + f5 my posts sitemap sourcestill no effect.
I give up. But it is not resolved.
No, I guess you misread what I tryed to say. I want to ge rid of the i0.wp.com type linkings.
It’s been a long time since I asked for help and I turned off the images from the sitemaps.
Thanks anyway
Hello again. I tryed but it’s not helping.
My line is:
add_filter( 'rank_math/sitemap/xml_img_src', function( $src, $post ){ $src = str_replace( '//i0.wp.com/marinalar.com', 'https://marinalar.com', $src ); return $src; }, 10, 2);but still see i0
also tryed for other subdomains of this cdn as i1, i2, i3 .. still no effect on my sitemap.
I found out that I have to close “show images on sitemap” save and reopen and save again.. but no.. its not helping 🙁 Any other advices?