I'm trying to replicate the functionality of the content showcase/slider seen here:
From what I see in the HTML, it appears that there's 2 divs, one with the post images and one with the post titles.
I'd like to use something like
wp_list_pages to return the 4 most recent posts and put them in the slider, but I'm not quite sure how to do it. It seems that they're in separate div's - how would I query the posts and split the set of images from the set of post names? I guess I could make 2 queries and have one query images while the other queries titles but it seems that isn't the most efficient way to do so.
EDIT: Adding sample desired markup - the content of
title-0 should be from the same post.
<div id="slider"> <div id="slider-images"> <div id="media-0"> <img> </div> <div id="media-1"> <img> </div> </div> <div id="slider-titles"> <div id="title-0> <div class="title">text</div> </div> <div id="title-1"> <div class="title">text</div> </div> </div> </div>