Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/danidnm/solodani-mobile-featured-image-for-wordpress/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
📱 Mobile Featured Image
Adds a second featured image field for posts and pages, specifically for mobile display.
✨ Features
- Adds a "Mobile Featured Image" metabox in the WordPress editor (sidebar).
- Uses the native WordPress Media Library.
- Stores the selected image as post meta.
- Helper function to retrieve the image in templates.
- Lightweight and dependency-free.
🛠️ Installation
- Upload the plugin folder to
/wp-content/plugins/mobile-featured-image, or install it via the WordPress dashboard. - Activate the plugin from the Plugins menu.
- Edit any post or page — you'll see a new "Mobile Featured Image" metabox in the sidebar.
- Use the provided function in your theme to render the mobile image:
❓ FAQ
Does it replace the default featured image?
No. It adds a second, independent image. You control how it’s displayed in your theme.
Can I use it with custom post types?
Currently, only post and page are supported. Support for CPTs is planned.
Is it translatable?
Yes. All labels are translatable using Loco Translate or .po/.mo files.
📸 Screenshots

🧩 Usage / Developer Helper
echo get_mobile_featured_image($size, $post_id); // Both parameters are optional
Or:
echo the_mobile_featured_image($size, $post_id); // Both parameters are optional
Or:
<div class="mobile-only">
<?php the_mobile_featured_image(); ?>
</div>
<div class="desktop-only">
<?php the_post_thumbnail(); ?>
</div>
Or:
<div class="mobile-only">
<?php the_mobile_featured_image(); ?>
</div>
<div class="desktop-only">
<?php the_post_thumbnail(); ?>
</div>
📦 Changelog
1.0.0 Initial release: adds metabox, media uploader integration, save logic, and helper function.