Featured Image
-
Hi,
I am exploring on codex and found this code
<?php $thumbnails = get_posts('numberposts=5'); foreach ($thumbnails as $thumbnail) { if ( has_post_thumbnail($thumbnail->ID)) { echo '<a href="' . get_permalink( $thumbnail->ID ) . '" title="' . esc_attr( $thumbnail->post_title ) . '">'; echo get_the_post_thumbnail($thumbnail->ID, 'thumbnail'); echo '</a>'; } } ?>Now I have installed it on my homepage and it works as I want but I have one problem which is I want the corresponding featured image have same dimension sizes.
Please help me with the codes,
thanks in advance
Nimitz
http://www.nbatioco.com
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Featured Image’ is closed to new replies.