The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WP and TimThumb

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #26241

    Ok, I wrote a code for using custom fields to display images, and im using it to display thumbnails so i have the code grab it and send it threw the TimThumb php image resizing script to make the image smaller for the front page, everything works except the TimThumb, it doesn’t work for me.

    this is the code to grab the img url from the custom field:

    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);

    ” rel=”bookmark” title=”Permanent Link to “>

    This is the little bit of code that takes the image url from the custom field and puts it into the timthumb script

    and as you can see here the images never show up

    alt=”” class=”left” width=”100px” height=”65px” />

    But in this theme from Elegant Themes uses the same type of custom field coding and put it threw the timthumb and works fine..

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.