Add featured image to any part of the website, on each individual post/page. Very Easy to Implement. Provides you with a featured image shortcode [ featured-img ] , code and Featured Image widget.
Paste the Code or the Shortcode on any part of the website.
Very Easy to implement.
Simple Shortcode Available
Easy code Implementation inside loop and outside loop.
Upload the folder featured-image to your WP plugin folder /wp-content/plugins/ directory
Go to Plugins > Plugins, and activate the plugin
Step 2
Use this shortcode '[featured-img]' on your page/post content.
Use this shortcode '[featured-img-caption]' on your page/post content for caption
Use this Code on your template inside loop: <?php if ( function_exists('get_featured_img') ) get_featured_img(); ?>
升级注意事项:
2.2
CRITICAL SECURITY UPDATE: Fixes XSS vulnerability (CVE-2025-12019). Please update immediately.
2.1
Minor global $post fix
1.0
Created the shortcode, widget and the php code
常见问题:
What is its Shortcode?
[featured-img]
更新日志:
version 2.2
Security: Fixed Stored Cross-Site Scripting (XSS) vulnerability in image alt text and URLs (CVE-2025-12019)
Security: Added proper output escaping using esc_url() and esc_attr()
Security: Added wp_kses_post() sanitization for caption output
Fixed: Added missing global $post declaration in caption function
Fixed: Improved error handling in caption function
Improved: Code formatting and WordPress coding standards compliance