I’m slipping here a little bit. I spent the better part of my day (and night) tinkering with this. Although I have a fundamental understanding of manipulating the for loop and object oriented programming I can’t write PHP straight-up yet.
I’ve tried 3 different solutions that I found researching this issue online and none have nailed it yet. One, allowed me to query global posts within a category and successfully provided a permalink wrapped around the title. I then piggy-backed this solution to echo the content, but that’s not exactly what I want because it includes any and all text as well. Plus, when querying the media attachments directly, I’m able to take advantage of the lightbox plugin to display them nicely and they are automatically resized as well.
Here’s a screenshot of what I mean (since by the time this is read I’ll no doubt be tinkering with it again https://cl.ly/image/16032N2R2B18)
This is the relative, final product I’m looking for. I actually thought I had it working before, until I uploaded the Google SSL image and noticed it showed up on the homepage.
I think the problem I’m having is that I can’t filter my attachment query properly against anything usable to ONLY show uploaded attachments that were used on Category – 4 i.e. – ‘Trees’ posts. On the flipside, I can’t sort out how to ONLY pull the attachments within a post when I query the posts. I’ve just had luck yet.
bcworkz, I am not sure I understand the solution you suggested. I’ve reread it multiple times. I just think it’s still above my pay grade right now. ??