Grow your CSS skills. Land your dream job.

timthumb problem

  • # September 24, 2009 at 9:01 pm

    Ok im trying to use TimThumb on my blog, this is my first time using it, i have several themes that have it in the code, but i’ve also look up some tutorials on how to use it, I’m also using custom fields which work but for some reason the images dont show up when i try to put them threw timthumb below is my code


    < ?php query_posts('category_name=blog&showposts=5'); if(have_posts()) : while(have_posts()) : the_post();
    // check for thumbnail
    $thumb = get_post_meta($post->ID, ‘Thumbnail’, $single = true);
    // check for thumbnail class
    $thumb_class = get_post_meta($post->ID, ‘Thumbnail Class’, $single = true);
    // check for thumbnail alt text
    $thumb_alt = get_post_meta($post->ID, ‘Thumbnail Alt’, $single = true);

    alt=”< ?php if($thumb_alt !== '') { echo $thumb_alt; } else { echo the_title(); } ?>”

    ” rel=”bookmark” title=”Permanent Link to < ?php the_title_attribute(); ?>“>< ?php the_title(); ?>

    < ?php the_time('F jS, Y') ?>
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".