I want the featured image to appear in the slider on the home page but not in the post itself. Where do I go to edit this. Please show actual code.
Removing featured image from post
3 posts from 3 voices-
Posted 2 years ago #
-
Ok, is this for one post or for all?
If this is for all posts then just remove this code from single.php:
$preview_image = kriesi_post_thumb($post->ID, array('size'=> array('M'), 'display_link' => array('lightbox'), // '_prev_image_link' or array('lightbox') 'linkurl' => array ('fullscreen','_preview_big'), 'wh' => $k_option['custom']['imgSize']['M'] ));If it's just for one, you'd need to use a conditional variable such as:
if(!is_single('beef-stew')){ $preview_image = kriesi_post_thumb($post->ID, array('size'=> array('M'), 'display_link' => array('lightbox'), // '_prev_image_link' or array('lightbox') 'linkurl' => array ('fullscreen','_preview_big'), 'wh' => $k_option['custom']['imgSize']['M'] )); }where the post slug is "beef-stew" (the url would be something like: http://www.domain.com/food/beef-stew/) to remove from this single post.
Let me know if you need further clarification.
Posted 2 years ago # -
This was just what i was looking for as well although it is really cumbersome to have to change single.php each time you want to not show a pic. It would be nice if there was setting in the accordion that told the post not to show the featured image.
Posted 2 years ago #
Reply
You must log in to post.














