most of my post on wordpress got 6 or 5 images perpost. My problem is if I posted 5 new post with new images, it will be totall 25 images display on my homepage.
I want to limit 1 image perpost on “homepage only”, the full content (lets say got total 6 images, it will be on single page).
Anyone know how to do it??
Or any Image excerpt plugin that can limit image on homepage?
Example:
echo catch_that_image();
or:
Example:
echo wpse18215_the_thumb( 'medium', 'class="alignleft" width="200" height="175"' );
Note: You need to wrap the call anyway inside your template into a conditional statement:
if ( is_home() || is_front_page() ) { /* place the function call here */ }
I use this inside your themes functions.php
}
and call it inside your loop with
thats straight out of my site im working on right now, change “medium” to the size of the pic you want, “thumbnail”, “medium”, “large” or “full_size”
for more info go here