<h3>Recent Post</h3> <div> <!– use a custom field for image , Here the custom field name is = “newReleaseThumb” –> <?php $myposts = get_posts(‘numberposts=5&offset=1′);foreach($myposts as $post) > <div style=” width:100%; float:left; border:#FF0000 0px solid; padding: 5px; margin-bottom:2px; background:#0000FF;”> <div style=”width:95px; float:left;”> <?php $thumbnail = get_post_meta($post->ID, ‘newReleaseThumb’, true); ?> <a href=”<?php the_permalink() ?>” title=”<?php the_title_attribute(); ?>”> […]
Tag Archives: Code for custom field Image in recent post List
Code for custom field Image in recent post List