Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter julesdr

    (@julesdr)

    Ok I found something that looks like that code but it looks a lot more complicated (probably because of the theme I’m using…

    /* this function gets thumbnail from Post Thumbnail or Custom field or First post image */
    function get_thumbnail($width=100, $height=100, $class=”, $alttext=”, $titletext=”, $fullpath=false, $custom_field=”)
    {
    global $post, $shortname, $posts;

    $thumb_array[‘thumb’] = ”;
    $thumb_array[‘use_timthumb’] = true;
    if ($fullpath) $thumb_array[‘fullpath’] = ”; //full image url for lightbox

    if ( function_exists(‘has_post_thumbnail’) ) {
    if ( has_post_thumbnail() ) {
    $thumb_array[‘use_timthumb’] = false;

    $args=”;
    if ($class <> ”) $args[‘class’] = $class;
    if ($alttext <> ”) $args[‘alt’] = $alttext;
    if ($titletext <> ”) $args[‘title’] = $titletext;

    $thumb_array[‘thumb’] = get_the_post_thumbnail( $post->ID, array($width,$height), $args );

    if ($fullpath) {
    $thumb_array[‘fullpath’] = get_the_post_thumbnail( $post->ID );
    $thumb_array[‘fullpath’] = preg_match_all(‘/<img.+src=[\'”]([^\'”]+)[\'”].*>/i’, $thumb_array[‘fullpath’], $matches);
    $thumb_array[‘fullpath’] = $matches[1][0];
    };
    }
    };

    Thread Starter julesdr

    (@julesdr)

    Ok where do I find that code? Like which CSS File?

    Thread Starter julesdr

    (@julesdr)

    well I kind of figured something out for the time being by simply replacing the default “blogicon.png” image file with one that was simply designed differently…

    Thread Starter julesdr

    (@julesdr)

    Ah, yeah I changed my theme… same problem though…

Viewing 4 replies - 1 through 4 (of 4 total)