Forums

[resolved] the_excerpt and custom image (5 posts)

  1. sylk
    Member
    Posted 2 months ago #

    Hi all,
    At the moment I'm recoding my homepage. It is not the blog, but I'd like to show Teasers to the last 3 posts. Until here it is ok.

    I've use this technique: http://www.daobydesign.com/blog/2007/07/modifying-wordpress-front-page/ combined with the_excerpt function.

    But now I'd like to show a little thumbnail to make it a little bit more attractive. Is there a way to add something like and "excerpt image"?

    Thanks in advance for your awnsers.
    Bye

  2. samboll
    moderator
    Posted 2 months ago #

  3. sylk
    Member
    Posted 2 months ago #

    Thanks,
    But actually I'd like to put a picture related to each post.

    Example:
    http://www.timesonline.co.uk/tol/news/
    The last two entries do have a little thumbnail.

    Is there any way of entering a custom variable to the post (image_path) and calling it afterwards?

  4. samboll
    moderator
    Posted 2 months ago #

  5. sylk
    Member
    Posted 2 months ago #

    Thanks for your help and the links.
    I finally decided to use the custom variable and the get_post_meta() function.

    I'm trying to avoid plugins as much as possible.
    Have a nice day

Reply

You must log in to post.

About this Topic