Sometimes it’s hard to find help on the WordPress forums if you want to accomplish something unusual.
Look at the hundreds unsolved posts and you’ll get an idea. That’s when google is your best friend.
Yesterday I wanted to list the first attachment images from specific posts from a certain category on my page outside of the directory where I installed wordpress.
That’s not all, because then it wouldn’t be so hard finding a solution.
I also wanted that attachment image thumbnail link to the fullsized attachment image, I’m not there yet(!), with a highslide class to the href.
Believe me the solution was simpler then finding it.
Here are a few links to get you started:
How to: Get the first image url from a post and display it
wprecipes.com
How to: Get attachment image inside the loop with custom size
wp forums topic[resolved]
How to: Get attachment thumbnail inside the loop with link to full url
wp forums topic[resolved]
How to: Get attachment image inside the loop with custom size, and highslide/lightbox etc. support:
desilva.info
Before you use this, make sure that you know what you’re doing. And backup every altered file.
Look at the frontpage to see my final result.
You can see that I only made the tiny thumbnails highslide.
If you want something similar as what I did, then let me know by posting a comment here and then I’ll write an article about it.
Possibly Related posts:
- Then And Now Reloaded Since the last time I changed the overal look of...
- Add useful functions in WordPress You can find these extra functions on the WordPress forums...
- Then And Now Since my site turned live I’ve made a few changes...


