Tag Archives: featured images

Exclude Featured image from WordPress gallery

I needed to add the default wordpress gallery to page with a featured image but found that the featured image was also included in this gallery. The best way I found to exclude this is to add the code below to your site function exclude_thumbnail_from_gallery($null, $attr) {     if (!$thumbnail_ID = get_post_thumbnail_id())     […]