1
peeps

Display a Random Post (with AJAX Refresh)

published 1031 days, 16 hours, 42 minutes ago posted by http://jonnyboats.wordpress.com/http://jonnyboats.wordpress.com/ 1032 days, 14 hours, 32 minutes ago
Tuesday, July 21, 2009 11:22:29 AM GMT Monday, July 20, 2009 1:32:38 PM GMT

I think you’ll be surprised at how ridiculously easy this is. We are going to leverage some serious smartness from both WordPress and from the JavaScript library jQuery.1. Set up area for Random Post (HTML) This could be anything really, just so long as it is a text page element with an ID you can target. I put this in our sidebar.php.

category: News | clicked: 0 | | source: diggingintowordpress.com | show counter code
tags: WordPress

No comments yet, be the first one to post comment.

To post your comment please login or signup