Explorar o código

Varia: Remove featured image support for Pages

Allan Cole %!s(int64=5) %!d(string=hai) anos
pai
achega
5aebca6fe9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      varia/functions.php

+ 1 - 1
varia/functions.php

@@ -50,7 +50,7 @@ if ( ! function_exists( 'varia_setup' ) ) :
 		 *
 		 * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
 		 */
-		add_theme_support( 'post-thumbnails' );
+		add_theme_support( 'post-thumbnails', array( 'post' ) );
 		set_post_thumbnail_size( 1568, 9999 );
 
 		// This theme uses wp_nav_menu() in two locations.