by Jan Willem Oostendorp
4.9 (67 reviews)
Default Featured Image
Add a Default Featured Image for all posts & pages.
Compatible with WP 6.9
v1.8.2
Current Version v1.8.2
Updated 1 month ago
Last Update on 29 Nov, 2025
Synced 15 hours ago
Last Synced on
Rank
#622
-1 this week
Active Installs
70K+
-6.1%
KW Avg Position
N/A
—
No change
Downloads
533.2K
+81 today
Support Resolved
100%
—
No change
Rating
98%
Review 4.9 out of 5
4.9
(67 reviews)
Next Milestone 80K
70K+
80K+
32
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro
Unlock Exact Install Count
See the precise estimated active installs for this plugin, calculated from real-time ranking data.
- Exact install estimates within tiers
- Track install growth over time
- Milestone progress predictions
Need 6,154 more installs to reach 80K+
Rank Changes
Current
#622
Change
Best
#
Downloads Growth
Downloads
Growth
Peak
Upgrade to Pro
Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.
Upgrade NowReviews & Ratings
4.9
67 reviews
Overall
98%
5
63
(94%)
4
2
(3%)
3
1
(1%)
2
0
(0%)
1
1
(1%)
Tracked Keywords
Showing 0 of 0| Keyword | Position | Change | Type | Updated |
|---|---|---|---|---|
| No keyword data available yet. | ||||
Unlock Keyword Analytics
Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.
- Full keyword position tracking
- Historical ranking data
- Competitor keyword analysis
Support Threads Overview
Resolved
Unresolved
1
Total Threads
1
Resolved
0
Unresolved
100%
Resolution Rate
Track This Plugin
Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.
Start Tracking FreePlugin Details
- Version
- 1.8.2
- Last Updated
- Nov 29, 2025
- Requires WP
- 6.2+
- Tested Up To
- 6.9
- PHP Version
- 7.4 or higher
- Author
- Jan Willem Oostendorp
Support & Rating
- Rating
- ★ ★ ★ ★ ★ 4.9
- Reviews
- 67
- Support Threads
- 1
- Resolved
- 100%
Keywords
Upgrade to Pro
Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.
Upgrade NowSimilar Plugins
WP Adminify – White Label WordPress, Admin Menu Editor, Login Customizer
7K+ installs
#2,736
Master Addons For Elementor - White Label, Free Widgets, Hover Effects, Conditions, & Animations
40K+ installs
#929
Skyboot Custom Icons for Elementor
200K+ installs
#254
Performance Lab
200K+ installs
#267
Photo Gallery by 10Web – Mobile-Friendly Image Gallery
200K+ installs
#268
Frequently Asked Questions
Common questions about Default Featured Image
Switch themes. Most of the time the theme does something weird.
Are you using the Core WordPress functions to get the image? (see the FAQ below this one).
Do normal feature images work?
Might it be hidden via css? DFI images have an extra default-featured-img class added to them.
Still having problems? I want to know if it fails, so contact me
Which functions can I use to display the featured image?
There are no new functions, all core WordPress functions can be used.
the_post_thumbnail / get_the_post_thumbnail Display the image.
the_post_thumbnail_url / get_the_post_thumbnail_url Get the url.
has_post_thumbnail If a DFI is set it will always return true.
get_post_thumbnail_id will return the ID set on the post or the DFI.
Are you using the Core WordPress functions to get the image? (see the FAQ below this one).
Do normal feature images work?
Might it be hidden via css? DFI images have an extra default-featured-img class added to them.
Still having problems? I want to know if it fails, so contact me
Which functions can I use to display the featured image?
There are no new functions, all core WordPress functions can be used.
the_post_thumbnail / get_the_post_thumbnail Display the image.
the_post_thumbnail_url / get_the_post_thumbnail_url Get the url.
has_post_thumbnail If a DFI is set it will always return true.
get_post_thumbnail_id will return the ID set on the post or the DFI.
add_filter( 'dfi_thumbnail_id', 'dfi_posttype_book', 10, 2 );
function dfi_posttype_book( $dfi_id, $post_id ) {
$post = get_post( $post_id );
if ( 'book' === $post->post_type ) {
return 31; // the image id for the book post type.
}
return $dfi_id; // the original featured image id.
}
function dfi_posttype_book( $dfi_id, $post_id ) {
$post = get_post( $post_id );
if ( 'book' === $post->post_type ) {
return 31; // the image id for the book post type.
}
return $dfi_id; // the original featured image id.
}
add_filter( 'dfi_thumbnail_id', 'dfi_category', 10, 2 );
function dfi_category( $dfi_id, $post_id ) {
// Set a different image for posts that have the 'cats' category set.
// This will trigger first, if multiple categories have been set.
if ( has_category( 'cats', $post_id ) ) {
return 7; // cats img id.
}
// Set a different image for posts that have the 'cats' category set.
if ( has_category( 'dogs', $post_id ) ) {
return 8; // dogs img id.
}
return $dfi_id; // the original featured image id.
}
Can I change the HTML of the default featured image?
When a Default Featured Image is used it will already add an extra class default-featured-img.
This can be used for styling.
If you need more you can change the whole HTML with the filter dfi_thumbnail_html.
add_filter( 'dfi_thumbnail_html', 'dfi_add_class', 10, 5 );
function dfi_add_class( $html, $post_id, $default_thumbnail_id, $size, $attr ) {
// Add a class to the existing class list.
$attr['class'] .= ' my-class';
return wp_get_attachment_image( $default_thumbnail_id, $size, false, $attr );
}
function dfi_category( $dfi_id, $post_id ) {
// Set a different image for posts that have the 'cats' category set.
// This will trigger first, if multiple categories have been set.
if ( has_category( 'cats', $post_id ) ) {
return 7; // cats img id.
}
// Set a different image for posts that have the 'cats' category set.
if ( has_category( 'dogs', $post_id ) ) {
return 8; // dogs img id.
}
return $dfi_id; // the original featured image id.
}
Can I change the HTML of the default featured image?
When a Default Featured Image is used it will already add an extra class default-featured-img.
This can be used for styling.
If you need more you can change the whole HTML with the filter dfi_thumbnail_html.
add_filter( 'dfi_thumbnail_html', 'dfi_add_class', 10, 5 );
function dfi_add_class( $html, $post_id, $default_thumbnail_id, $size, $attr ) {
// Add a class to the existing class list.
$attr['class'] .= ' my-class';
return wp_get_attachment_image( $default_thumbnail_id, $size, false, $attr );
}
add_filter( 'dfi_thumbnail_id', 'dfi_skip_page', 10, 2 );
function dfi_skip_page( $dfi_id, $post_id ) {
if ( $post_id == 23 ) {
return 0; // invalid id.
}
return $dfi_id; // the original featured image id.
}
function dfi_skip_page( $dfi_id, $post_id ) {
if ( $post_id == 23 ) {
return 0; // invalid id.
}
return $dfi_id; // the original featured image id.
}