-
Guys, looks like Rank Math is not indexing images from WPBakery content blocks. It’s working fine on classic editor but since my theme is using WPBakery page builder (content blocks etc) I have zero images in the sitemap. This is a serious issue affecting SEO. Any plans to fix that?
- This topic was modified 5 years, 7 months ago by Tom Robak.
-
Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
Can you confirm that the attachment post type is enabled on the Rank Math settings? You can check this by heading over to Rank Math > Sitemap settings > Media.
Looking forward to helping you. Thank you.
Looks like there is many people struggling with that – I just found plenty of topics in google about Rank Math not working nice with WPBakery images (which is a leading page builder – so looks like massive amount of people are affected but they didn’t discover that yet)
- This reply was modified 5 years, 7 months ago by Tom Robak.
Hello,
Thank you for the response.
Are you using WP Bakery modules like Post Grid, Post Slider etc? Please note, the Content analysis only analyzes the content which is in the post_content filed in a wp_posts table. The Post grid and Post slider modules are the shortcodes which show the latest posts, the content of these posts is not included in the Content analysis.
Looking forward to helping you. Thank you.
this is how visual builders work. I migrated from other seo plugin Y. That plugin was absolutely fine. Now we are talking about indexing images, so would be good to hear what is fixing plan for that – otherwise Rank Math won’t be helpful to thousands of people
ps. talking about indexing in google, not content analyse – so don’t get me wrong
Hi Tom,
Thanks for the follow up.
Our developers are currently working on an API that will fix this but we do not yet have an ETA for when this will be available.
Please note that it is really not important for images to appear on sitemaps since Google will find them in the content regardless of whether they appear on the sitemap or not.I hope this info helps.
you are right, but the reason I am asking is since started using Rank Math (approx 3 weeks) I discovered today that thousands of my images were deindexed… nothing else changed, so Rank Math is the reason…
I just found on WordPress forum that over a month ago the same reply Rank Math support gave to similar question.
https://www.dropbox.com/s/i8bcrzl8cfw9y6h/Screenshot%202019-04-12%2017.09.30.jpg?dl=0
So looks like you know the issue/bug and you didn’t address that yet.
- This reply was modified 5 years, 7 months ago by Tom Robak. Reason: link added
Hi Tom,
Thanks for writing back.
Do you think you could grab us some temporary admin access to your site so that we can check whether a different issues is causing this on your site?
Please edit the sensitive data section and enter your credentials to prevent unauthorized access.I am looking forward to helping you.
absolutely, sending now – please check last position in the sitemap (first blog post)
https://www.dropbox.com/s/b9iycc36n8sne0f/Screenshot%202019-04-12%2020.45.44.jpg?dl=0
https://www.tomrobak.com/wedding-in-tuscany-borgo-di-colleoli-resort/
- This reply was modified 5 years, 7 months ago by Tom Robak.
also pages sitemap zero images (all pages done via wpbakery) 🙁
Hello,
We are so sorry. We have been able to replicate this and our dev. team has been made aware of this issue.
We are working on a fix and will have an update for you within the week.
I would really appreciate your patience in this matter.
Hello,
Upon checking further, it seems like WPBaakery added a code in their plugin to make Yoast compatible.
Can you please contact them to add the support for the Rank Math plugin as well?
In the meantime, you can add the following code in your theme’s functions.php file to make the images count appear in the Sitemaps:
add_filter( 'rank_math/sitemap/urlimages', function( $images, $id ){ if ( empty( $images ) ) { $post = get_post( $id ); if ( $post && strpos( $post->post_content, '[vc_row' ) !== false ) { preg_match_all( '/(?:image|images|ids|include)\=\"([^\"]+)\"/', $post->post_content, $matches ); foreach ( $matches[1] as $m ) { $ids = explode( ',', $m ); foreach ( $ids as $id ) { if ( (int) $id ) { $images[] = array( 'src' => wp_get_attachment_url( $id ), 'title' => get_the_title( $id ), 'alt' => get_post_meta( $id, '_wp_attachment_image_alt', true), ); } } } } } return $images; }, 10, 2 );
Please let us know if that resolves the issue.
Thank you.
for posts yes… on pages still no images :/
Hello,
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.
The ticket ‘WPBakery Images are not indexed’ is closed to new replies.