Featured Image Show disabled by default

Responsive WordPress theme suitable for Schools, Colleges or educational websites.
GK User
Tue Jan 27, 2015 12:29 pm
Hi, i'm looking for a way to set the additional params "Show featured image" disable by defaut.
I need to set the featured image to show it in the event-list category page, but not into the article page.
How can i do it without set for every page?
thanks
User avatar
Fresh Boarder

GK User
Wed Jan 28, 2015 9:12 am
Hello,

You can do it in theme files, but in this case the image will ba disabled also on the event-list category page.
Try to edit University/layouts/content.post.featured.php file and after this line:
Code: Select all
$params_image = isset($params['gavern-post-params-image']) ? esc_attr( $params['gavern-post-params-image'][0] ) : 'Y';


add:
Code: Select all
if (is_category('your_category_id')) {
   $params_image == 'Y';
} else {
   $params_image == 'N';
}

with your events list category id or slug.
http://codex.wordpress.org/Function_Ref ... s_category
User avatar
Moderator


cron