How do I show different size pictures between Wordpress posts and the front page?
I have a Wordpress gallery and I would like to show thumbnails on the main page but bigger pictures on the individual post page.
Public Comments
- You can automatically generate thumbnails and several sizes of images when you upload in the latest version of WordPress. Designate the size and shape in Settings > Miscellaneous. When you make or edit a post and insert a graphic from the gallery, you will see the option of which size image or to use or a thumbnail that links to the larger image.
- you need a plugin like exec_php to do that, so you can call php code in your post. after the plugin installed, put this code in your post: <?php if(is_home()){ echo "<img src='http://linktoyourthumbnail' alt='thumbnail' />"; } else { echo "<img src='http://linktoyourbiggerimage' alt='biggerimage' />"; } ;> note: to make the plugin work properly, you need to do these: # Disable tag balancing ‘WordPress should correct invalidly nested XHTML automatically’ through the ‘Settings > Write’ menu in WordPress # Disable the WYSIWYG editor in the user’s settings through the ‘Users > Your Profile’ menu
Powered by Yahoo! Answers