Filtering the loop content into different divs
-
Im building a site where each post will be a video, image or slideshow with some text added. Im wondering whats the best way to filter out the content into different divs is? I would like to seperate the visual content into one div and the text about it into another, so that I can style it accordingly.
I did something almost like this in another site, where I used a code to get everything with an img tag and put it into a certain div, and everything else into another, maybe this could be modified to output everything BUT paragraphs into one div and paragraphs into another?
Here is the code I used before: http://pastebin.com/fevE8hB7
Or is there some other smart way of doing this?
Maybe using jQuery with appropriate selectors to wrap my content into different divs?
The topic ‘Filtering the loop content into different divs’ is closed to new replies.