Skip to main content
Agency Program 50% cashback. 10% commissions. Priority support. Built for growing agencies. 50% cashback for agencies Speak to the team Join free
DFI

Dynamic Featured Image

v3.7.0
by Ankit Pokhrel · 4.4 (58 reviews)

Dynamically adds multiple featured image (post thumbnail) functionality to posts, pages and custom post types.

80K+ active installs Updated Jan 29, 2021 Tested to 5.6.14 Requires PHP 5.4
Try Demo Download
Pre-installed Ready in ~10s No card

About Dynamic Featured Image

Dynamic Featured Image is a plugin that allows you to add multiple featured images to your posts and pages, without writing any code. These images can be used by other plugins, post thumbnails, or sliders, and can be accessed using theme functions. The plugin also provides documentation and support on WordPress.org, and allows for contributions on Github.

Frequently asked questions

What does the Dynamic Featured Image plugin do?
The Dynamic Featured Image plugin dynamically adds multiple featured image or multiple post thumbnail functionality to your page, posts, and custom post types. It provides an interface to add any number of featured images without writing code.
How can I add multiple featured images using this plugin?
After activating the plugin, go to the add or edit page of posts or pages. You will see a box for a second featured image, where you can click 'Set featured image' and select your desired image. You can then click 'Add New' to add more featured images or 'Remove' to delete a featured image box.
How do I retrieve the dynamic featured images in my theme?
You can retrieve the images by calling the function $dynamic_featured_image->get_featured_images([$postId (optional)]) in your theme. The data will be returned in an array format, including 'thumb' and 'full' URLs for each image.
Is there a limit to the number of featured images I can add?
The plugin allows you to add any number of featured images as you want. It enables the option to have MULTIPLE featured images within a post or page.

Changelog

3.7.0

  • Feature: Auto-select media on open (#78)
  • Fix: Attachment ID issue for edited image (#77, #80)

3.6.8

  • Fix slow query issue (#74, Thanks @tobros91)
  • Add German translations (#69, Thanks @swiffer)
  • Correct Swedish translations (#72, Thanks @S8nsick66)
  • Add sponsors

3.6.5

  • Add Thai translations (#63, Thanks @isudnop)
  • Fix warning when counting empty string in PHP 7.2 (#66, Thanks @zsmartin)
  • Show only images in media selector (#67, Thanks @zsmartin)
  • Add filters for metabox context and priority (#68, Thanks @zsmartin)

3.6.1

  • Remove short array syntax to support php <= 5.4.

3.6.0

  • Various security fixes.
  • Missing text domains fixes.
  • Dashicons css removed as it is no longer needed.
  • Numerous WordPress coding standard improvements.

3.5.2

  • Fix image url if image already points to CDN. PR #50
  • Internal refactorings

3.5.1

  • Minor code refactorings.

3.5.0

  • Unit Tests.
  • Added support for github updater. Issue #44
  • Fix get_the_ID issue in WordPress below 4.0.
  • Remove extra quotation mark that was making the html invalid.
  • Added uninstall script.

3.4.0

  • Added Link to Image field.
  • Portuguese Brazilian translation (Thanks to @bruno-rodrigues).
  • And some minor refactorings.

3.3.1

  • Increased code quality

3.3.0

  • Fixed Invalid image path returned – Pull Request #35
  • Added dfi_post_type_user_filter to disable metabox in post types.
  • Added filter to change metabox title.
  • Some minor fixes.

3.1.13

  • Added post types filter – Pull Request #32
  • Fixed issue #33 – Incorrect data return when no image attached.
  • Fixed issue #34 – Problem Retrieving Images in HTTPS Protocol.
  • Revised code quality.
  • Added Italian translation.

3.1.9

  • Changed the scope of function get_image_id()
  • Fixed typo in Nepali translation.

3.1.7

  • Added Nepali, Swedish, Hebrew, Serbian, Croation and Bosnian languages.
  • Fixed bug on issue #25 solution.
  • Various code quality improvements.

3.1.2

  • Fixed issue #25.

3.1.0

  • Partial fix for issue #22.
  • Increased code quality.

3.0.1

  • Fixed several JSLint issues

3.0.0

  • Fully Object Oriented (Thanks to @cfoellmann).
  • New WordPress Media Uploader.
  • Uses dashicons instead of images.
  • Functions to retrieve image descriptions and nth featured image.
  • Well documented.

2.0.2

  • Minor css fix (issue #18 in GitHub, Thanks to @cfoellmann)

2.0.1

  • Change in design.

2.0.0

  • Now with various helper functions.
  • Helpers to retrieve alt, title and caption of each featured image.
  • Added support for remote url.
  • WordPress 3.7 compatible.
  • Primarily focused on theme developers.

1.1.5

  • Fixed PHP Notice issues in strict debugging mode (Issue #4 in GitHub, Thanks to @Micky Hulse).
  • Added post id in media upload box.
  • Enhanced MultiSite Support.

1.1.2

  • Resolved media uploader conflicts.

1.1.1

  • Fixed a bug on user access for edit operation.

1.1.0

  • Major security update
  • Now uses AJAX to create new featured box

1.0.3

  • First stable version with minimum features released.
  • Fixed bug for duplicate id.
  • Updated dfiGetFeaturedImages function to accept post id.
  • Fixed some minor issues.

Try other plugins

Really Simple SSL icon

Really Simple SSL

4.9 · 4M+ installs

The easiest way to improve security! Leverage your SSL certificate and protect your website visitors.