Forum

Please make sure that you have read the documentation and extensive resources provided on this site before posting your question!

Dynamic Content Gallery Resources

DCG Version 4.0 beta is now available for download and testing. This is a development version and not recommended for live sites. Read more here.

Note that the current stable release of the DCG is version 3.3.5.

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Code Snippit Suggestion: auto set the 'the_post_thumbnail'

UserPost

9:22 pm
May 7, 2010


drewbaker

Guest

1

I have a suggestion for a useful code snippit for your awesome website.

So WP2.9's 'the_post_thumbnail' feature is amazing, but it requires the user to manually specifiy the image to be used as the 'the_post_thumbnail'.

So it would be handy to have a code snippit that automattically sets the first image uploaded as the 'the_post_thumbnail', which can be overridden by the user if desired.

Most of my posts only contain one image, and it's furstrating to have to set the 'the_post_thumbnail' everytime. Also, I do a lot of posting via email and there is no way to set 'the_post_thumbnail' when posting via email. If I could have Wordpress automattically set the first image attached as the 'the_post_thumbnail' then this would solve both problems.

Thanks! Keep up the good work!

-Drew

 

 

the_post_thumbnail

11:55 pm
May 7, 2010


Ade

Admin

posts 2384

2

Drew,

Thanks for your post and kind words. I'll give your suggestion some thought – and if I come up with a solution I'll write it up. Smile

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?