Results 1 to 2 of 2

Thread: Display blog posts within scrollable div?

  1. #1
    Join Date
    Jun 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Display blog posts within scrollable div?

    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>
    </div>


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


    Any suggestions?

  2. #2
    Join Date
    Jun 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    no responses? Did I do something wrong in my post?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •