Jump to content
Sign in to follow this  
visioneer

Auto thumbnail function?

Recommended Posts

visioneer

Hi, I want to use WhiteHousePro for a blog update. At the moment the blog has 700 posts and the theme used an auto thumbnail function (out of the box by the theme). Also, the first image of any post is automatically used as thumbnail! Is it possible to integrate a function like this into WhiteHousePro or has the theme something like this out of the box too? thanks

Share this post


Link to post
Share on other sites
Andrew

yes, its possible. Will take some custom code to make it work as you'd like. We will have to accommodate whatever code the thumb function used in your old theme. Was it using a plugin?

Share this post


Link to post
Share on other sites
visioneer

That sounds good! At the moment thumbnails are generated and resized automatically using the TimThumb script.

Share this post


Link to post
Share on other sites
visioneer

Second question: is it possible to change the look of the Excerpt and Thumbnail Placement to this (see image) f99q-1-jpg.htmllink image

Share this post


Link to post
Share on other sites
cmunns

To answer your second question, yes that's possible. You'd only have to make a minor adjustment to the _posts.php file in the way the html is ordered.

Share this post


Link to post
Share on other sites
visioneer

Again, what's about the first question? Is it possible to integrate TimThumb to the theme to set the thumbs per auto to the posts (old / new)? If not, i found a plugin, called "Auto Post Thumbnail" by Aditya Mooley but it works only with new publish posts or if i republish any of the 700 posts...! This is not very comfortable! Plugin Homepage

Share this post


Link to post
Share on other sites
Andrew

well the theme is currently designed to handle either a custom field called "thumb" with the URl as a value or the default WordPress thumbs (introduced in wp 2.9) To add functionality for your plugin, or method... we would have to edit this section of _posts.php ` <?php if(pl_show_thumb($post->ID)): ?>

<?php elseif (get_post_meta($post->ID, 'thumb', true)): ?> <?php $postimageurl = get_post_meta($post->ID, 'thumb', true); ?> <?php endif; ?> ` the question is, what functions, or methods to your plugins use?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×