Skip to content

get_featured_media_thumbnail() is not compatible with featured galleries #2

Description

@scottsweb

The get_featured_media_thumbnail does not grab the first image from the gallery if no featured image is attached:

function get_featured_media_thumbnail( $post_id, $size = null ) {
    return get_the_post_thumbnail( $post_id, $size );
}

The requires that a featured image is always set for a featured gallery.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions