Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #5236

    Hello! I would like to insert a thumbnail image in the post preview but when you get inside the post the image size should be bigger than the thumbnail preview.

    How can i do that?



    to be honest I don’t know an user friendly solution for this problem too. I can imagine that it’s possible with some php coding and or to display different thumbnails by using conditional tags but inside of (custom) queries they don’t work well and can output false positives. Overall I don’t know an reliable and easy way to implement this feature.


    I want to do this ( The homepage has a preview of the post and then when you get into the post there is the full text and the original size of the image… I know that it is easy but i can’t find the way to do this.. I know that the thumbnail can be inserted with custom fields but i try it so many times and i don’t have what i want…


    You can hardcode/use post meta values instead of the featured image but the image wouldn’t be part of the post preview itself then (part of the text content). If you refer to a different featured image for previews you can implement this feature by editing index.php (and archive.php).


    $medium_prev_image = display_featured_media($counter);


    if(get_post_meta($post->ID, 'preview_image', true)){
    $medium_prev_image = get_post_meta($post->ID, 'preview_image', true);
    $medium_prev_image = display_featured_media($counter);

    and for portfolio posts don’t forget to follow the instructions posted here:

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

The topic ‘How to insert thumbnail image?’ is closed to new replies.