Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wordpress post types supports thumbnail

 <?php 
$args = array(
  /* ... */
  'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' )
 ); 
  register_post_type('book',$args);
}
add_action( 'init', 'custom_post_init' );
Comment

PREVIOUS NEXT
Code Example
Php :: laravel db inserr 
Php :: laravel without global scopes 
Php :: laravel select multiple value in form edit 
Php :: is_unique in codeigniter form validation 
Php :: php migrate comand 
Php :: apache2 php 8 update not working 
Php :: symfony set content type 
Php :: laravel 8 decimal 
Php :: laravel hasMany with join 
Php :: laravel store array to cache 
Php :: codeigniter form validation datetime 
Php :: laravel controller in details 
Php :: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted 
Php :: array helper array_push laravel 
Php :: drupal 9 modify a views query 
Php :: woocommerce get orders by user id 
Php :: upgrade php7 to php 8 xampp 
Php :: laravel controller create command in a folder 
Php :: time now with milliseconds php 
Php :: how to add custom field in comment form in wordpress 
Php :: add bootstrap class to checkout fields woocommerce 
Php :: send var in header php 
Php :: how to get yearly chart in laravel 
Php :: Mixed Content: The page at was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 
Php :: The `php` command cannot be found. Please verify that PHP is installed, or set the `php.executables` setting. 
Php :: Laravel - Query Builder Raw Query selectRaw 
Php :: session not working php 
Php :: how to download image from url from a particular div in php 
Php :: sub menu for post type in wordpress 
Php :: array_walk in php 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =