All right, I got this working. I set it up on my test blog and its working perfectly for now.I
m using Photopress and Priyadis PHP Exec plugin.
1)Get both plugins
–PHP Exec Plugin
–Photopress
Install them both as you normally would.
2)Now as per the PHP Exec plugins instruction insert php code in your post like this:
<phpcode>
<?php
if (is_single()) {
echo "<img src=https://example.com/wp-content/photos/photo.jpg><br>
This is for post page";
}
else {
echo "<img src=https://example.com/wp-content/photos/thumb_photo.jpg width=130 height=69><br>
This is for frontpage ";
}
?>
</phpcode>
You can see it in action Here
It really wasnt that hard and my php knowledge is practically zero.I
m sure someone can make it much prettier.
Photopress makes the thumbnailed image automatically for you so you only have to upload your picture and tell it to post the thumbnail.Then just copy and paste the image insertion code into the code I posted above. You cant preview so try testing it somewhere first.
I
m going to try to merge this into Photopress so you don`t have to go cutting and pasting stuff everywhere and it places everything in its place.
This code might also have to be edited to display thumbnails for frontpage and archive pages depending on whether your template shows posts while in the archive