php - Featured Images in WP not showing -
added line of code in function.php file
add_theme_support('post-thumbnails');
after going saving, , looking @ screen options, featured images still wasn't showing. went far check if custom fields correct , had unmarked show
first: (i assume it's typo in description): change function.php
to functions.php
second: try call add_theme_support('post-thumbnails')
within function attached after_setup_theme
hook shown in documentation.
// register theme features function custom_theme_features() { // add theme support featured images add_theme_support( 'post-thumbnails' ); } // hook 'after_setup_theme' action add_action( 'after_setup_theme', 'custom_theme_features' );
i hope these steps fix issue, otherwise necessary provide more of code
Comments
Post a Comment