PDA

View Full Version : Excerpt with Thumb


ronnie
2008-06-26, 05:38 PM
On one of my blogs i am trying to set it up so it shows excerpts on the main page but with a little thumb for each post, thumb of the picture used in the post. I know WP makes the thumb, it's in my upload directory, but getting it to work with my theme, I can't seem to get it.

I know I can do this by setting it up when I write the post, but I don't want to go back and have to edit old posts. I looked through a couple themes that do this, but can't seem to get it to work on the theme I am using.

I'm sure I am missing some little thing, usually the case. I've also spent quite some time searching the WP site but can't seem to find the answer.

Any suggestions?

walrus
2008-06-26, 10:09 PM
I'm not sure but I think it has to do with which template tag your using in your loop. If your using <?php the_excerpt(); ?> then it wouldn't display a thumb as that either takes what you've put in the excerpt area on your write page or, by default, 55 words. Either way I think it ignores any HTML.

I think what you want to use is <!--More--> which would be inserted into your post.

I'm not sure cause I've never tried it so in case I'm wrong here (http://codex.wordpress.org/Template_Tags/the_excerpt)is where I got my information from

ronnie
2008-06-26, 10:39 PM
See, thats the rub, I'd like to keep from going back in and editing every old post. Of course it only matters for the posts on the main page, but I might be using this else where.

I have a couple theme's I've downloaded that do this, I guess i just need to dig in and figure it out.

Thanks for the reply though..:)

walrus
2008-08-12, 02:08 PM
Don't know if you still around much but with a little luck you'll still get e-mail alerts...probably not though.

Anyway I ran across this plugin today that will do the trick for you, Advanced Excerpts (http://wordpress.org/extend/plugins/advanced-excerpt/)

ronnie
2008-08-12, 06:26 PM
Don't know if you still around much but with a little luck you'll still get e-mail alerts...probably not though.

Anyway I ran across this plugin today that will do the trick for you, Advanced Excerpts (http://wordpress.org/extend/plugins/advanced-excerpt/)

Oh you bet I'm still around, some one has to keep any eye on you...|club|

I really like that plug-in, it does give you much more control over the excerpt. The only thing, it doesn't say anything about images, that was what I was really looking for.

I will try this out though, it has some nice features. Thank you!

walrus
2008-08-12, 06:51 PM
It does pass the image tag. I'm using it on Porn Blog Surfer if an image is at the beginning of the post (first 300 characters) the image becomes a part of the excerpt.

ronnie
2008-08-12, 07:27 PM
Well Duh.. I should have known better. You found the solution. Thanks again..:)