Eek! A 33% acceptance rate isn’t really going to do you any favours but lucky for you WordPress’ in-built post-thumbnail featured image functionality works for posts, custom post types and pages too.
Add the following line into your theme functions.php file:
add_theme_support( 'post-thumbnails', array( 'post', 'page' ) );
Then in your page.php file and I stress that this must be used within the page loop (not outside of it) the following function will show your featured image on a page if it has one assigned to it.
the_post_thumbnail()
Adding a featured image to a page is the same process as adding one to a post. On the page editing screen you will see a metabox with a link that says, ‘Set a featured image‘ click that and you’re good to go. No plugins required.
Related Posts:
- Does the number of downloads displayed for a plug-in in the WordPress.org plug-in directory include automatic updates?
- How to get home page ID?
- How to detect WP plugins used on a site
- Using WordPress as a CMS: Developer preferences for custom vs existing plugins
- Is it a good idea to edit an already existing plugin to add more functionality?
- Custom Filter in WordPress to modify footer information via plugin?
- Is it heavyweight plugins or lots of plugins that make a site slow?
- Why does wp_enqueue_style() in plugin not load stylesheet?
- Archive list with only years and months
- How can I make an Ajax login form work with FORCE_SSL_ADMIN enabled?
- How to trace the cause of these PHP notices and warnings for class-wp-query.php?
- Admin plugin, how can I output a different content-type?
- How do I fix the “sorry, you are not allowed to access this page” error I get on the “plugins > settings” links?
- Plugin: How to make links in admin page open up inside of the admin panel
- Insert query inserts 2 entries, should insert 1
- Modify featured image URL at runtime
- Editor access to plugin settings
- Adding Custom Fields for Img in Posts
- Network-Wide Plugin Settings Management
- Has anyone been able to get the aweber plugin to work
- How to use a Must-Use plugin to hide a regular one and to hide itself?
- Shortcode display outside the div
- How to create a widget or plugin to add custom content to my website?
- Custom Widget outputs the input but doesn’t save anything inside the textarea
- How can I let users to access plugin functions based on roles?
- Use Media Uploader in Plugin
- wp_nav_menu(); Outside WordPress installation
- Install plugin remotely
- Fastest way to loop through all posts?
- Is there a way to share content amongst wordpress sites
- Woocommerce: Changing the variations select default value? [closed]
- Best Apache Log Analyzer Plugin? [closed]
- Insert code after tag without using functions.php?
- Get uploaded image url
- Akismet plugin is deleting spam despite preferences
- Star rating for custom post types [closed]
- How to Make a Custom Grid View
- Extend the Admin Post/Edit page
- Offering Ads Dependent on Visitor Type?
- How WordPress knows where to find locale files?
- Can wp_script_is used in pluginA check if a script is being enqueued/registered from pluginB?
- Collaborative post submission [closed]
- Reuse javascripts from plugins within the theme
- WP theme with Backbone
- Can I store WordPress media in different sub-folders?
- $wpdb working with ajax but showing ajax error instead of success
- AddFilter option_active_plugins is executed 6 times. Why?
- Include Max mega menu Plugin into theme
- Inserting large amounts of data into a custom table during plugin install
- WP-Markdown treating java generics like HTML tags
- Can’t get title of latest post
- How to remove all javascript in a theme wordpress?
- Default Plugin Settings Not Writing to Database
- Display success message after wp_update_post
- Global variables during plugin activation , deactivation and uninstall operarations
- Create a custom page template inside my wordpress plugin
- Add form fields dynamically on button click
- Custom Post Type Plugin not loading category template and loading 404 instead
- Need help restoring my WordPress blog
- WP plugins for building a database?
- Loading child theme script after plugins scripts
- White page on custom plugin option submit
- Change the method of a class from child function.php
- Remove ALL css for a specific plugin page
- Image upload and other options in the same plugin settings form?
- Create digital-virtual-downloadable WooCommerce products from the frontend using Gravity Forms? [closed]
- Is it possible to add a sidebar in a woocommerce hook?
- Is WP feature image function cropping images? WP Content Slideshow
- “Request has expired” with “Make your site social” (Gigya) plugin
- wordpress site | All-in-one-cufon IE Issue
- WordPress display breadcrumbs using Yoast plugin [closed]
- How to change this WP_Query to get all ProductIDs and not only specific one?
- How to send an automated email to the customers when product is added woocommerce
- Trying to Get Text Field to Save
- WordPress plugin output formatting
- Finding which plugin uses cloudflare (due to GDPR)
- how to use in custom single.php template using php?
- Automatically Assign Author to Category [closed]
- How can I change the meta_key for a particular piece of information?
- How to insert HTML/JavaScript form into WordPress page? [closed]
- Howto check version of another plugin and then add a submenu page to it
- How to know if your code is executed on wordpress.com and wordpress.org?
- I want to include My theme file (testing.php) to inside my plugin folder (myplugin/mypugin.php)
- How do I set register_meta for a specific CPT?
- How to Enfroce Domain Licensing Limits? [closed]
- Override plugin constant using a theme
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Update Content for a Custom Block Toolbar Button
- Issue with customizer and widget page
- Posts in Admin only display 1 Post instead of all Post in admin area
- WordPress issue – data is not showing in wp-admin, but when searching through database, all the data is there
- WordPress menu dissapear when I add a parameter to custom post archive
- Submitting form to admin-post.php WordPress
- WordPress Throwing Deprecated Errors on its own Files
- How to update a lot of posts on my WP site with additional content?
- Customize WP Filter Hook
- Changing slug when post is copied
- Show the author only own types of publications. (JetEngine, Elementor)
- use the live preview feature in the plugin
- add to cart linking to add to cart page