From 0233ebf8b93105c03790e512a8ca506ec6fccd19 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Thu, 25 Oct 2018 11:04:50 +0200 Subject: [PATCH] functions: support explicitaly excerpt --- functions.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/functions.php b/functions.php index f4eeb69..a6ebca1 100644 --- a/functions.php +++ b/functions.php @@ -40,3 +40,11 @@ register_taxonomy( ); register_taxonomy_for_object_type( 'niveau', 'post' ); + +/* 3. Excerpt support */ + +function wpqdouze_post_supports() { + add_post_type_support( 'post', 'excerpt'); +} + +add_action( 'init', 'wpqdouze_post_supports' );