-
I have added the following code into the site and it works on post but not page. What should i do to fix that? Thanks
add_filter( ‘rank_math/sitemap/entry’, function( $url, $type, $object ){
$url[‘loc’] = untrailingslashit( $url[‘loc’] );
return $url;
}, 10, 3 );- This topic was modified 5 years, 11 months ago by .
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The ticket ‘Trailing slashes in sitemap – page’ is closed to new replies.