1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need WP Plugin for Images above post title?

Discussion in 'Blogging' started by dotcum, Jun 15, 2010.

  1. dotcum

    dotcum Regular Member

    Joined:
    Jan 12, 2010
    Messages:
    277
    Likes Received:
    41
    Occupation:
    Internet Marketer/Cab Driver
    Location:
    S Ozone Park NY
    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.
     
  2. dotcum

    dotcum Regular Member

    Joined:
    Jan 12, 2010
    Messages:
    277
    Likes Received:
    41
    Occupation:
    Internet Marketer/Cab Driver
    Location:
    S Ozone Park NY
    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.
     
  3. xXSebaSXx

    xXSebaSXx Registered Member

    Joined:
    May 8, 2009
    Messages:
    52
    Likes Received:
    28
    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 Thanks x 1
  4. plasmaflux

    plasmaflux Registered Member

    Joined:
    Feb 20, 2010
    Messages:
    91
    Likes Received:
    37
    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.
     
  5. plasmaflux

    plasmaflux Registered Member

    Joined:
    Feb 20, 2010
    Messages:
    91
    Likes Received:
    37
    Or this. :)
     
  6. dotcum

    dotcum Regular Member

    Joined:
    Jan 12, 2010
    Messages:
    277
    Likes Received:
    41
    Occupation:
    Internet Marketer/Cab Driver
    Location:
    S Ozone Park NY
    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.
     
  7. planeetpluto

    planeetpluto Newbie

    Joined:
    Jun 18, 2010
    Messages:
    35
    Likes Received:
    8
    Occupation:
    Callcenter Agent
    Location:
    Belgium
    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...
     
    • Thanks Thanks x 2
    Last edited: Jun 21, 2010
  8. funnyday

    funnyday Junior Member

    Joined:
    Apr 7, 2009
    Messages:
    101
    Likes Received:
    5
    good thread,bookmarked this.