• Resolved antiqueapollosupport

    (@antiqueapollosupport)


    In a web shop the product category pages are very important focus pages for SEO. I’d like to add some images to their Yoast generated XML sitemap which are not picked up automatically by the Yoast SEO plugin.

    I do this successfully on posts using the wpseo_sitemap_urlimages filter. However, I noticed that this filter is not triggered on the Woocommerce product category pages.

    My request is to have the filter wpseo_sitemap_urlimages also trigger on Woocommerce product category pages. Or is there an other filter that I can use instead that IS triggered on the Woocommerce product category pages?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @antiqueapollosupport

    Thanks for reaching out regarding images in your sitemap. In using the filter, do ensure to add the image title; there’s an additional array ['src', 'title'] inside the array_push() to make it work. Currently, the title will be the post title for the relevant image. If you’d like you can set it whatever you’d like.

    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

    Thread Starter antiqueapollosupport

    (@antiqueapollosupport)

    Thank you for the reply, I am aware how to apply the filter.
    However, my issue was that I noticed that this filter is not triggered on the Woocommerce product category pages. So Yoast is not activating this trigger on a product category page. So my code is never called upon.

    Plugin Support Maybellyne

    (@maybellyne)

    Based on the provided information, we expect this to be a bug. We’re actively using the bug tracking on our GitHub repository, so your best next step would be to create a new issue for our developers here.

    You will need an account to create a new issue. Please provide as much information about the issue, including the URL to this conversation. This guide will help you submit a complete report which may result in a faster resolution.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Filter wpseo_sitemap_urlimages is not triggered on Woo product archive pages’ is closed to new replies.