Site map image count is not showing correct image count

#35146
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Rank Math is currently not compatible with all page builders such as the one you are using Themefy Builder and thus not all the images added through the page builders can be read and added to the sitemap.

    I can suggest that you get in touch with the author of this page builder and seek their help in adding some logic to fetch post images and add them to the Rank Math sitemap using the following filter:

    /**
     * Filter images to be included for the post in XML sitemap.
     *
     * @param array $images  Array of image items.
     * @param int   $post_id ID of the post.
     */
    add_filter( 'rank_math/sitemap/urlimages', function( $images, $post_id ){
    	return $images;
    }, 10, 2);

    Other theme authors have already followed suite and added this compatibility.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello Michale,

    Thanks for looking into this, please could you also check the other two item that are failing due to gzip and minification, I think this should not be failing as WP fastest cache is set to compress and minify?

    Thanks
    Jay

    Hi Jay,

    I have checked and responded to your other ticket 🙂

    Please let us know if we can offer additional help!

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Site map image count is not showing correct image count’ is closed to new replies.