This plugin has worked for me in the past:
http://wordpress.org/extend/plugins/multiple-post-thumbnails/
Or you could create a custom field – Advanced Custom Fields makes this very easy (and for the end user too):
http://plugins.elliotcondon.com/advanced-custom-fields/
This could be integrated by using the traditional ‘featured image’ as the slider image – ie leaving <?php the_post_thumbnail(); ?>
or equivalent in the loop that makes your slider. Then when displaying the post, you could check if the post has a secondary image attached, and fall back to the featured image if not. Something like this with the Advanced Custom Fields Plugin (untested code):
<?php if (!( $secondary = get_field('secondary-image'))) {
the_post_thumbnail(); // or however you like to do it
} else {
echo wp_get_attachment_image($secondary);
} ?>
Related Posts:
- The the_post_thumbnail without srcset?
- Get the first image from post content (eg.: hotlinked images)
- How to change post thumbnail title and alt attributes to post title?
- Unexpected width and srcset attributes for the_post_thumbnail();
- How to handle thumbnails
- Change display of featured image for pages in twenty seventeen theme
- How to set dimensions of the post thumbnails (featured images)
- How to regenerate thumbnails when they’re stored on S3
- Cannot get full thumbnail size using the_post_thumbnail
- Can’t show custom post thumbnail sizes as background images
- Featured Images are not able to be set
- Display recent posts with thumbnail
- Reasons why all thumbnail sizes aren’t working
- How do I Add images uploaded in the post to a default custom field
- How do I build a post_thumbnail based archive? [closed]
- How do I turn a post thumbnail into a background image?
- Reactor Theme: Prevent Post Thumb on Post
- Featured Image meta box not showing up
- How do I remove inline style in featured image markup?
- Set a featured image as a replacement to the header image
- Dynamic Post Thumbnail →
- Issue on Getting Custom post type Thumbnail’s URL
- How To Pick Custom Size Of Uploaded Image In Theme Via the_post_thumbnail();?
- How to disable thumbnail filter for a specific template part or image size?
- the_post_thumbnail() get the URL to the “medium” sized image
- Full width featured thumbnail
- How can I get the featured image or the first image for a post/page and display it as a banner?
- How to make excerpt image be full size instead of thumbnail?
- How can I scale down the width of images in bulk that are embedded in posts throughout the site?
- Add image URL automatically to custom field?
- theme directory fallback image outputs url and not the image
- Created blank theme for REST API, featured image not appearing on admin side
- Full width thumbnail
- Featured Image Module Randomly Disappears
- Single Featured Image Repeating
- Any disadvandages if I style the wordpress align classes without img and .wp-caption prefix
- apply_filters to featured image
- Show post thumbnail only if it exists using timthumb
- Display Page featured Image as well as Posts featured Image
- How do I work with responsive images in WordPress? (img srcset/sizes)
- I want to resize post featured image without cropping image. How?
- What is the preferred way to add custom javascript files to the site?
- Should I use set_transient or update_option?
- How do I check if a menu exists?
- How to edit bbPress template files – WordPress + BuddyPress + bbPress? [closed]
- Trouble with conditional tags
- How Does One Change The Meta-Description Of Home-Page?
- Set front page as static page [closed]
- Theme Customizer – Choose where widget area appears, to let users organise widgets
- How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?
- Adding default pagination to wordpress loop
- Translation-readiness of Koi theme
- Recommended tools for Theme Development with SASS [closed]
- How to add font in wordpress
- What tags should be used for themes to show the type of layout?
- enqueue_style is not working
- What are non-printable characters doing in my theme?
- Theme settings keep getting reset/erased
- How to change i18n/l10n of #reply-title? (Old title: Comment reply link not working)
- How to call WooCommerce update cart function programatically
- Lightweight framework [closed]
- Using an if statement in the theme customizer page
- How to edit my theme for full width?
- What VSCode extensions are there for working with block themes? [closed]
- What is the “correct” way to add hooks or similar PHP behavior to a blocktheme?
- Following Web Performance Optimization techniques to output static and dynamic css
- Echo all category names, apart from one
- Is it possible to visually group items on the theme customizer?
- Internal Stylesheet in WordPress Theme development
- How can I develop multiple widgets for a WordPress theme?
- Is there a way to optionally hide the title bar when logged in?
- How to create first post, fifth post full width, rest in three columns and so on
- How to Create custom xml file for demo content for custom theme?
- post_exists returning 0 if title contain special characters
- Theme not showing up
- How do I provide for multiple crops of the same image in a theme?
- Why WordPress AJAX returns undefined however it works fine when I add static url instead of dynamic function?
- Adding a new setting using Kirki or WP customizer with an if statement
- Pagination: Keep prev and next link even on the first/ last page
- How to add icon over specific thumb
- How to remove permalinks links presents in each page of my site?
- Is there a way to serve different resolution images to different devices?
- How to substitute old wordpress menu by wp 3 menu the right way?
- Why my theme option not working?
- How to use multiple check-box values to work in a function and insert values in database
- Catch the moment when theme is deleted
- Attribute form NumberControl doesn’t update when I update page before it lose its focus
- create loop for the_content()
- how to change footer content for certain pages only
- function ‘theme_settings_page’ not found
- Should I use template files or just use conditional tags in index.php?
- Is there a way to create sections under “Colors” panel in the Theme Customizer?
- How to load mediaelement.js in theme template?
- How can I include the js and css file of my custom theme dynamically in header.php
- WordPress Blog Page displaying nothing
- Suppress the_content filter in a nested loop
- Set start page depending on screen width [closed]
- How can I change the title of the Home link in the navigation bar?
- Add option for administrator to submit link
- Display recent posts on front page