Jahanzaib khan
Jahanzaib khan

Reputation: 1

Feature image option won't show in portfolio

I am making a wordpress theme But the problem is i can not enable feature image option in Portfolio I have added the following code in the function.php add_theme_support( "post-thumbnails", array('portfolio', 'post'));

This code is working for posts but not for portfolio

is it because of any of these plugins that i am using

Advanced Custom Fields Custom Post Type UI Akismet

enter image description here

Upvotes: 0

Views: 47

Answers (1)

user5933888
user5933888

Reputation:

try this in fucntion.php file

function custom_theme_setup() {
    add_theme_support( 'post-thumbnails', array('post', 'page', 'popup') );
}

add_action( 'after_setup_theme', 'custom_theme_setup');

Upvotes: 3

Related Questions