View Full Version : Display blog posts within scrollable div?

06-09-2010, 02:18 AM
1) Script Title: Scrollable Content II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm

Hey Guys, brand new member here. I am working to finish my first website for my first client. However, he wants his blog posts to show up inside a scrolling box. It's trickier than I had originally thought. I found the nice little scrollable content script on this site, and thought I could just paste the wordpress loop within it, but it doesnt work. Here is the PHP wordpress loop:

<?php query_posts('showposts=1');?>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post2">
<div class="postmeta"> <?php the_time('n/j/y'); ?> <?php edit_post_link('edit', '', ' '); ?></div>
<h1><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>

<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>

Any suggestions? :confused:

06-10-2010, 02:52 AM
no responses? Did I do something wrong in my post?