Need WP Plugin for Images above post title?

dotcum

Regular Member
Joined
Jan 12, 2010
Messages
277
Reaction score
41
Hey everyone, I'm looking for a wordpress plugin that inserts 4 thumbs above the post title for each post made (NOTE - not on main index to display same image on all pages but in each unique post above the post title so each post will have 4 thumbs of my choice). Is there any out there? If so please recommend. If there is non then I'm willing to pay $10 via pay-pal for such a plugin. PM me if you want the job.
 
WOW 61 views and no reply. I guess there is no wp plugin that can do that. Can anyone make that plugin? If you can, name your price. Waiting for your reply.
 
But you don't need a plugin for this... All you have to do is add 4 custom fields to your posts like this and store the path to each thumb in one of the custom fields.
After that it's just a matter of calling those custom fields wherever you want to show the thumbnails.
 
That's a pretty specific request.

I develop themes and plugins for a living. If you want me to do this exactly to your specifications, I'll need a week and $1000, paid in full up front.

Otherwise you'll just need to search the free plugin repository for something close enough, or study in the Wordpress Codex on how to write your own plugin.
 
But you don't need a plugin for this... All you have to do is add 4 custom fields to your posts like this and store the path to each thumb in one of the custom fields.
After that it's just a matter of calling those custom fields wherever you want to show the thumbnails.

Or this. :)
 
But you don't need a plugin for this... All you have to do is add 4 custom fields to your posts like this and store the path to each thumb in one of the custom fields.
After that it's just a matter of calling those custom fields wherever you want to show the thumbnails.
Thanks mate for the great info, I will try this. Can you please elaborate on how exactly to do this as I don't know anything about it.
 
In the New Post window you can add custom fields.

You said you want 4 images, so the names of these custom fields could be "thumb1", "thumb2", and so on.

The value of each field should be the location of the images.

So custom field "thumb1" has the value of "hxxp://yoursite.com/wp-content/uploads/thumb1.jpg", or it can be an external linked image like "hxxp://farm4.static.flickr.com//194/515931056_88f3b9de9a.jpg"

Now you can use these custom fields in your template files. Mostly index.php, single.php

example:

Code:
// WP Checks if there are any posts
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

// Your posttitle
<h2><?php the_title(); ?></h2>

// Call custom field thumb1 and see if it exists, else show nothing
<?php $thumb1 = get_post_meta($post->ID, 'thumb1', true);
if ($thumb1) {
?>
<img src="<?php echo $thumb1; ?>" />

<?php } else { ?>

<?php } ?>

// Call custom field thumb2 and see if it exists, else show nothing
<?php $thumb2 = get_post_meta($post->ID, 'thumb2', true);
if ($thumb1) {
?>
<img src="<?php echo $thumb2; ?>" />

<?php } else { ?>

<?php } ?>

<?php endwhile; endif; ?>
I hope this is clear and it helps :-)

edit: select the code to see the inline comments...
 
Last edited:
Back
Top