• Resolved slr1979

    (@slr1979)


    Hi

    I am using the Catgories Images plugin https://www.ads-software.com/plugins/categories-images/ and I was wondering if any knows how to get the images assigned to the taxonomies into the sitemap? I have successfully set the images in the wpseo_opengraph_image filter etc. but I cannot see a way to use the wpseo_sitemap_urlimages filter to add them to the sitemap. The wpseo_sitemap_urlimages filter appears to only work with post ids and not term ids.

    Is there a way to do this or another filter that can be used. All help gratefully received. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    That filter only works with post IDs. It does not work with term IDs. However, we thank you for suggesting a new feature for one of our plugins. We’re not working on it at the moment but we’ll create a feature request for this, so our developers can consider this when planning updates.

    We do suggest signing up for our newsletter as that is where we will announce product changes and updates. You can sign-up for it here https://yoast.com/newsletter/.

    In the meantime, the only workaround would be to develop the ability. Unfortunately, there’s a difference between the support we can offer and the level of programming needed to change (core) features of our plugin. Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. And even though we cannot be of any assistance, you’re completely free to change anything in the plugin to better suit your needs.

    It seems as if you need to modify line 135 here https://github.com/Yoast/wordpress-seo/blob/bdf4495315f438320bbf27db4b8c96c1a1b6298c/inc/sitemaps/class-sitemap-image-parser.php to include term IDs.

    If needed, we highly recommend checking out?Code Poet ( https://directory.codepoet.com/ ) for available freelance WordPress developers and?Human Made ( https://hmn.md/ ) for development & consultancy.

    Alternatively, perhaps a developer watching these forums can assist further.

    Thread Starter slr1979

    (@slr1979)

    @pcosta88 Many thanks for your response.

    I have taken a look at the php and actually it appears that Yoast does already support terms in line 147 but only for images added in the description.

    IMHO, it would be more useful if your developers could add an apply_filter to the get_term_images function to enabling a developer to override of the default use of images in the description field as the sitemap image. I personally do not use images in the description field. I would probably only do this if my site design required a header image with the description for each term.

    I don’t think this would be to hard for your developers to implement and it would complement the already existing function for the post images in the sitemap.

    Please could you provide me with the link to the feature request so I may add to the thread should I come up with a solution?

    Do let me know your thoughts.

    Hi,

    While we are unable to provide a direct link to the request, if you would like us to add anything to it we can do so and pass it along to our developers.

    Plugin Support amboutwe

    (@amboutwe)

    This thread has been marked as resolved due to lack of activity by original poster.

    If you are not the original poster but have a similar issue, please open a new request.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Taxonomy Images in Sitemap?’ is closed to new replies.