views:

9

answers:

0

Currently I have created a little slideshow in wordpress using the jQuery Cycle plugin. I have a loop pulling up posts in a category, and a pager that on hover slides through the posts. I want the pager elements to also be links to the pages within the site. One thing I've already done is to wrap the excerpt in an h6 tag within the loop, then use jQuery to replace the numbered elements of the pager with their respective excerpt, like so:

/* Rebuilding the pager */
pagerAnchorBuilder: function(idx, slide) {
return '<li><a href="#">' + jQuery(slide).children("h6").eq(0).text() + '</a></li>';

Is it possible to replace the # for each href by, like the h6-wrapped excerpt, pulling it out of the post? Perhaps a custom field?

Thanks so much,

S