SEO extension and Images

I believe the listing image is not mapped correctly in the schema markup using the SEO extension. I am using “LocalBusiness” schema in the settings, and I have added an image from the default field during listing-submission. The other fields, including Attributes works as expected.

Is it a known issue? Any solution would be greatly appreciated.

In addition, the uploaded images are not picked up by RankMath either. Since the “Featured image” block is not showing in the editor it’s har to tell if its registered correctly.



Thanks for reporting this, the bug is confirmed, and we’ll fix it as soon as possible. There are two ways to solve this bug:

  • PHP snippet
  • or contact RankMath support for help

Please note that the image id is stored in the _thumbnail_id meta field.


Thanks for confirming. I would gladly try a PHP snippet until further notice.

Any specific reason the first image is not stored as “Featured Image”?


Thank you for waiting. Please try this PHP code snippet.

		$model = hivepress()->request->get_context('listing');
		if(!$model || !$model->get_image()){
			return $schema;
		$schema['image'] = $model->get_image__url( 'large' );
		return $schema;

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.