Wordpress Theme Modifications

Discussion in 'PHP' started by vienezul, Mar 31, 2010.

  1. #1
    hey, maybe someone can help me out with this one.

    i got this in my functions.php file

    <?php function get_thumbnail($postID) {
    if( function_exists('p75GetThumbnail') ) {
    $thumbnail = p75GetThumbnail($postID);
    return $thumbnail ? $thumbnail : get_bloginfo('template_url') . '/images/default-thumb.png';
    }
    return "";
    }

    what i want to is instead of showing the default thumb (when none is set) witch is /images/default-thumb.png i want to pick up the thumb from my custom field.
     
    vienezul, Mar 31, 2010 IP
  2. nabil_kadimi

    nabil_kadimi Well-Known Member

    Messages:
    1,065
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    195
    #2
    nabil_kadimi, Apr 1, 2010 IP
  3. vienezul

    vienezul Greenhorn

    Messages:
    95
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3

    THE ABOVE NOT WORKING

    My php skills are close to none maybe some can be more specific about what i have to do and how.
    ty
     
    vienezul, Apr 1, 2010 IP
  4. nabil_kadimi

    nabil_kadimi Well-Known Member

    Messages:
    1,065
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    195
    #4
    Hello,

    I read your post but I don't have time now, I'm really sorry.

    I will review your code later and post the reply here...

    Again... Sorry
     
    nabil_kadimi, Apr 1, 2010 IP
  5. vienezul

    vienezul Greenhorn

    Messages:
    95
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #5
    don't worry, thx for the short notice
     
    vienezul, Apr 1, 2010 IP