Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #298

    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.

    #30727

    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.

    #30728

    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.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Removing featured image from post’ is closed to new replies.