WordPress.org

Forums

How to set different image sizes on main page and sinle post (3 posts)

  1. ds24a3
    Member
    Posted 3 years ago #

    Hi,

    I am building a multi-column template and since I have 3 columns on my main page with all the recent posts, I want them to display (post content images) much smaller than when viewed as a single post.

    How do I go around this problem? all the formatting is always done inside the post itself.

    Dave

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    You could try resizing the images using CSS.

  3. ds24a3
    Member
    Posted 3 years ago #

    esmi, this is one of the ideas I was thinking about as the last resort. Because I wanted to be able to use different image than in the post itself and I wanted it to be cropped. I know about css cropping but don't want to use it as it is not working on older internet browsers.

    What I am thinking about is:

    1. placing an image after the post title by post ID (should work with the loop)
    2. then I will use a php to extract just the post contents without any images

    If it works I will post the code, if not first idea will have to suffice :)

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic