When registering a custom post type you must say that your CPT accepts thumbnail:
$post_type="vehicles";
$supports = array( 'title', 'editor', 'thumbnail');
$args = array(
[...]
'supports' => $supports
);
register_post_type($post_type, $args);
Related Posts:
- Disable plugin / plugin action via theme
- How to eliminate weird 404 errors in wp-admin?
- How would you require and automatically download dependent plugins?
- Changing wp login url without .htaccess
- Simple form that saves to database
- Create WooCommerce Product Category Programmatically
- Get Current user email as a return string value
- How can I make content disappear when a user logs in?
- Publish Post After Click On A Link
- ‘Lazy loading’ list of posts with pagination
- ID Conditional User Contact Methods Not Saving
- Replace existing pages with new pages, keep menu links
- gallery option is not available in media upload box in costum theme option page
- New post notification plugin [closed]
- Exporting and importing my WordPress database, but none of the plugin settings are importing
- Plugin for gallery with thumbnails?
- API for getting plugin core compatibility?
- Woocommerce – How to populate custom select field with stored values on checkout page?
- How to create ‘import dummy data’ option in custom wordpress plugin
- Woocommerce disable shopping cart based on user roles
- Object Oriented Plugin not working
- Adding Shortcode to Text Widget
- How to use site_url() in Elementor [closed]
- wp_generate_attachment_metadata is creating an empty array
- How to toggle between two custom fields in WordPress woocommerce ‘WC Product Field Group’ plugin?
- Plugin dropping pagination variable
- How to add checkboxes for a woocommerce product? [closed]
- What are the specifics of WordPress development I need to know? [closed]
- How to echo text in browser instead of download junk file?
- Use Editorial Calendar on any other page within any other plugin
- Add custom text color WordPress 3.9 TinyMCE 4 Visual editor
- ACF: post query, hide duplicate values [closed]
- WordPress Jquery UI Spinner
- How to customize a plugin?
- When taxes are country specific they don’t show in the cart totals
- How to replace website?
- changes to header.php not appearing
- Proper way to use plugin functions in functions.php
- Is there a plugin to turn comments into structured reviews [closed]
- How do I make reusable content blocks for header and footer when using WordPress headless with another front-end?
- How do I make a shortcode to display the shop name on Dokan?
- Remove Pagination for Product Category Pages WooCommerce
- Is there a plugin or a way in the wordpress that would let us have different versions of a post or page accessibe to users?
- Automatic WordPress Clone Backup
- Adding a simple Javascript file with a plugin
- Can’t Install/Upgrade Plugins Through WordPress
- Get post content from outside the loop with plugin shortcode usability
- Adding option values as an array using a multi selectable select box
- How to set the default value as the saved value once a form of widget is saved?
- Example for use tinymce in wordpress 3.5.1?
- Dynamic Image Replacement through call rail phone call tracking plugins in wordpress
- Advanced custom fields and Slideshow gallery desn’t work together? [closed]
- How could I fix the lowercase problem in nextgen gallery? [closed]
- Listing all sidebars
- How does the WP repository determine that two plugins are the same when counting active installs?
- Need to edit author permissions | custom taxonomy
- Custom Logo Link WordPress
- Where do I put the code snippets I found here or somewhere else on the web?
- WP Import All Multiple Dynamic Link Imports
- admin_notices show after load completed
- Error in Fetching Custom Post Type parent Category URL (slug)
- Optimise wordpress database using SQL after deleting registered images from Media Folder
- is there a way to display product gallery images via cdn
- Changing the Default New User Notification Email
- WP Fastest Cache -> Render Blocking Js -> Exclude Js Sources
- function post to trash problem
- save short-code in my custom plugin settings problem missed something
- Uploading website to live causing problems to plug-in and layout
- save multi-select input using update_option for plugin
- Capture Recaptcha fail event on Contact Form 7
- Plugin: Translated plugin is “not translated”
- How can I share my wordpress site with a friend?
- Making sure updates didn’t break anything
- wp_schedule_event function reference
- Meta box or shortcode help
- Change localization only for plugin
- How to get author developer link on plugin page
- wp_schedule_event need to deactivate plugin changing recurrance
- How do plugin updates work?
- Show all posts of all categories but excluding a category on custom blog page with pagination of my theme
- ajax request not returning the result
- adding image in the header of my dev widget
- passing ‘&’ in return function of add_filter
- Is there going to an issue running different features of WP site in different subdomains?
- Session alternative for plugins (due to caching)
- Is there a plugin that will override the “Error establishing a database connection” message? [closed]
- List all subpages hierarchically based on the currently viewed page, top ancestor levels included
- Shortcodes can only be used in Pages, not Posts
- how do you point ‘screen_function’ to a function in the same class? [closed]
- Plugin with custom domain
- Create New Admin Menu Section – Like how custom post type works, in a way
- Combining JS files to one script
- How to clean up unnecessary file inside wp-content/plugins/wordpress-seo?
- woocommerce retriving category name as div class?
- Duplicating wordpress install issue
- Woocommerce add product variations block to my custom template
- fatal erro in one line if statment in wordpress plugin [Solved]
- Transfer wordpress comments form on another post [closed]
- Achieve the following layout
- Change email notification language based on the site language in WPForms