This repository has been archived on 2024-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
kspace-wordpress-theme/functions/posts-support.php
2023-10-04 13:35:36 +02:00

20 lines
444 B
PHP

<?php
/////////////////////////////////////////////////////////////////////////////
// Posts supports
// Activate the different elements supported by the posts
//
// Version 0.1
// Support des extraits
function kspace_post_supports() {
add_post_type_support( 'post', 'excerpt');
}
add_action( 'init', 'kspace_post_supports' );
// Support des thumbnails
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 360, 360, true );
?>