Can I edit function sitemap_images($url)

[ad_1]

Hello @andi2021,

Thank you for your query and we are so sorry about the trouble this must have caused.

Unfortunately, we don’t have a filter code to include the image:title tag. You can modify the incoming image object of a post URL for your sitemap entry using the filter code below but it is unlikely that our sitemap will accept image:title when you insert it into the image object:
add_filter( 'rank_math/sitemap/entry', function( $url, $type, $object ){ return $url; }, 10, 3 );

You may refer to this guide on how to add the code to your website:

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer