Fix the path of the images in the Sitemap
-
Hello, I will try to be brief and go straight to the subject. I had to disable the images in the sitemap because they did not show the correct path. The images of my publications are generated by a plugin and do not have the default path used by wordpress. Each publication has a custom field that shows the exact and correct route of the image used. The way to fix the problem would be that the generator of the sitemap will take the image of this custom field (that’s just my opinion). I know there is a filter that is to correct this issue (wpseo_xml_sitemap_img_src) however i did not know how to configure it, look for examples but i did not find anything. Can someone tell me how i can use this filter to specify the specific path of the image of each publication? Could someone show me an example? How can tell the sitemap generator the custom field so that it takes the right image? Thanks in advance, any suggestion is welcome.
- The topic ‘Fix the path of the images in the Sitemap’ is closed to new replies.