How to show image in google search

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    The Article rich snippet type will use the post featured image to create schema ready data and thus you will need change the featured image and assign the image that you would like to show up on the SERP.

    Alternatively, you can make use of the following filter to change the image entity for this snippet type by supplying a new URL to the image:

    /**
     * Filter to Short-circuit Schema if a 3rd party is interested in generating their own data.
     * Replace $schmea_type with schema name like article, review, etc.
     * @param array $entity Snippet Data
     * @return array
     */
    add_filter( "rank_math/snippet/rich_snippet_{$schema_type}", function( $entity ) {
    	return $entity;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​​

    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.

Viewing 1 replies (of 1 total)

The ticket ‘How to show image in google search’ is closed to new replies.