I tried to add thumbnail support to my theme
add_theme_support( 'post-thumbnails',
array( 'post', 'page', 'service', '100', '90')
);
I tried to add thumbnail support to my theme
add_theme_support( 'post-thumbnails',
array( 'post', 'page', 'service', '100', '90')
);
Share
Improve this question
edited Mar 23, 2019 at 14:45
fuxia♦
107k39 gold badges255 silver badges459 bronze badges
asked Mar 23, 2019 at 10:02
ah jonyah jony
11 silver badge2 bronze badges
1
- what are 100 and 90? Which hook is used to call this code? – Qaisar Feroz Commented Mar 23, 2019 at 10:30
1 Answer
Reset to default 1Have a look at this documentation.
This feature must be called before the
init
hook is fired. That means it needs to be placed directly intofunctions.php
or within a function attached to theafter_setup_theme
hook. For custom post types, you can also add post thumbnails using theregister_post_type()
function as well.
TRY this
add_theme_support( 'post-thumbnails',
array( 'post', 'page', 'service')
);