Grow your CSS skills. Land your dream job.

Assign images to the posts in the sidebar??

  • # November 20, 2011 at 8:34 pm

    Hey everyone, I was wondering if anyone has ever had to add images to their post lists on the sidebar. I’m not looking to set a featured image, but rather assign a category image.

    It’s for a non profit organization that does like sports and camps and the like. So what I wanted to do is make it where if something that’s sports related is selected as a post type, it appears with the corresponding image (something sports-like).

    The only way I can think to do it is to add a loop directly into the sidebar where I’m pulling the image for a particular category, and then cap it at like 2 entries so it doesn’t fill up the sidebar. Maybe someone has a way better idea :)

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".