Any thing like timthumb that works with MS and can work with grabbing the first image?
So far no one has been able to tell me how to get timthumb to work so any ideas if anything else can?
Any thing like timthumb that works with MS and can work with grabbing the first image?
So far no one has been able to tell me how to get timthumb to work so any ideas if anything else can?
Is there any reason you can't just use the image capabilities built into WordPress?
Plenty of reasons. If the built in capabilities was that great scripts like timthumb wouldn't need to be created.
So... you can;t get the featured image built-in stuff to show you the first attached image?
you can also try the get-the-image plugin for finer control.
So far no one has been able to tell me how to get timthumb to work so any ideas if anything else can?
That's not true. We did tell you..
You do it with Custom Fields and TimThumb: http://odotteeaux.com/2010/08/17/adding-timthumb-to-your-wordpress-mu-or-multisite-theme/
You can try this older post on how to make it work with MU: http://www.binarymoon.co.uk/2009/10/timthumb-wordpress-mu/
You can Google and see what other peolpe have done: http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=timthumb+wordpress+multisite
I dont want to use custom fields. I said i need it to work by grabbing the first image.
You didnt tell me how to get the image to work with grabbing the first image? read what i said.
Once again none of those links show you how to get it working on MS/Timthumb.
I deal with way to many images to use built in image sizing and with my set up using custom fields just isnt do able.
I been playing with this code though since it seems that using the built in sizer is all i can do ill just have to add a ton more default sizes.
postimage($size=medium) {
if ( $images = get_children(array(
'post_parent' => get_the_ID(),
'post_type' => 'attachment',
'numberposts' => 1,
'post_mime_type' => 'image',)))
{
foreach( $images as $image ) {
$attachmenturl=wp_get_attachment_url($image->ID);
$attachmentimage=wp_get_attachment_image( $image->ID, $size );
echo '<a href="'.$attachmenturl.'" rel="'.$attachmenturl.'" class="preview">'.$attachmentimage.'</a>';
}
} else {
echo '<div class="no_image_index"><img src="../wp-content/themes/seismic/img/icons/image--exclamation.png" title="No Image"/></div>';
}
}
But i need this to do lots more. I also need to be able to get the post title, theme_url, and i also need to be able to choose what size i want $attachmenturl
Once again none of those links show you how to get it working on MS/Timthumb.
Because no one has done what you want done yet.
We're not giving you the answer you want because we don't have it. What we DO have are examples of workarounds, and google. So we have, now, shared ALL we know with you. This is where you say 'Thank you for the start!' and either write it yourself and share your skills with the other people who want this too, or take one of the previously discovered partial-solutions like they have.
The CLOSEST people have gotten to what YOU want is this doing it with Custom Fields and TimThumb: http://odotteeaux.com/2010/08/17/adding-timthumb-to-your-wordpress-mu-or-multisite-theme/
Someone else suggested that you can try this older post on how to make it work with MU: http://www.binarymoon.co.uk/2009/10/timthumb-wordpress-mu/
Finally, if none of those are acceptable, you can Google and see what other people have done and use that as a starting point: http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=timthumb+wordpress+multisite
That's all WE, free, volunteer, folks can do for YOU.
You're welcome.
Why or you "your welcoming me" you didnt help me. I ask a question and no one has gave me an answer, most have come in here and half way read what i have wanted done. Im sorry but if i say i want something to work with grabing the first image... you dont earn a thank you by giving me a link that works only with custom fields.
Its a case of if you dont know the answer... dont say anything. or least say "its not possible yet" or "id like to know this myself" or perhaps "lets work on it", giving me links to what i dont need isnt help, its just a user doing something to make them self feel like they are doing something.
This topic has been closed to new replies.