Images in post show as 0

  • I was looking through the support tickets and you reference that this might be an issue with the page builder. I would like to confirm.

    I have several posts that show 0 images in the sitemap, even though there are several images in the posts.

    I use Thrive Architect as my page builder and Astra as my theme.

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

    Thank you for contacting Rank Math today.

    Yes that is correct. Rank Math is currently not fully compatible with Thrive Architect and our content analysis tool is unable to to parse all the images added via this page builder. You can however seek the help of your theme author to add the images from the page builder to the 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);

    Looking forward to helping you. Thank you.


    How does having the images in the post sitemap help with seo?

    Hello Marco,

    It helps Google see all your images and possibly help to rank in Google Image search.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.


    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Images in post show as 0’ is closed to new replies.