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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions