• When researching the thumbnail size for the default “Embed” of WordPress, it looks like there are two shapes for the thumbnail, either square or rectangular. I am wondering how to specify one or the other.

    To embed another WP post in your blog, you simply enter the URL of any WordPress post, either from another blog or even your own blog.

    When your blog post is rendered, an excerpt of the URL is displayed. The format is generally Thumbnail + Title + Excerpt, and it is clickable to visit the URL.

    In the documentation at https://developer.www.ads-software.com/reference/hooks/embed_thumbnail_image_shape/ it is mentioned that the thumbnail image shape is either 'rectangular' or 'square'.

    Is there some additional parameter that could be used when embedding another Post, to select the rectangular format?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, @bkjproductions

    The WordPress documentation does not specify how to set the rectangular format when embedding another post. However, the ’embed_thumbnail_image_shape’ filter hook provides developers with the ability to alter the shape of the thumbnail image displayed in the embed. Unfortunately, this does not appear to offer an option to specify the shape as rectangular. It is possible that the shape is determined by the image itself; if the image is rectangular, it will be displayed as such, and if it is square, it will be displayed as a square.
    Thank you.

    Unfortunately, this does not appear to offer an option to specify the shape as rectangular.

    From the filter hook documentation linked above:

    Parameters

    $shape string: Thumbnail image shape. Either ‘rectangular’ or ‘square’.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Documentation on Embeds’ is closed to new replies.