Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Images for custom sitemaps #42

Open
xberg opened this issue Jan 5, 2017 · 1 comment
Open

Enable Images for custom sitemaps #42

xberg opened this issue Jan 5, 2017 · 1 comment

Comments

@xberg
Copy link

xberg commented Jan 5, 2017

Hi,
If I want to have the image tags appear in my custom sitemaps, I need to modify your xml.php file located:
/wp-content/plugins/bwp-google-xml-sitemaps/src/sitemap/xml.php

and remove both conditions checking for:
if ($this->provider->is_image_allowed())

Indeed, I did not find a way thru the admin panel to let the app know that I want images also on the custom sitemaps.

Once I remove the condition checking in xml.php it all works fine. But certainly there should be a way to do so without modifying your code.

thanks!

@kminh
Copy link
Collaborator

kminh commented Nov 10, 2017

There are quite a few prerequisites before a sitemap can have image tags. Actually, the current image sitemaps are post sitemaps with thumbnail emails. For now I do not have the plan to support image tag for custom sitemap yet, but you can take a look at the following methods and find your way around instead of having to modify the plugin's codes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants