my index page lists the post titles, date added, and comment information in a list sorted by categories. if you click 'click to read more' link , it loads <?php the_permalink() ?> and takes you to the page like normal.
what i want instead is when you click the link to slideToggle the post content (i guess not the permalink) below.
here is the code:
<div class="postWrapper">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post">
<div class="postTitleBar">title</div>
<div class="cCLeft">
<h2 class="post">
<?php the_title(); ?>
</h2>
</div>
<div class="cCMiddle"> added
<?php the_time('F jS Y') ?>
|
<?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?>
</div>
<div class="cCRight">
<a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title_attribute(); ?>">click to read more</a>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
what this looks like:
-Title Bar (full width of div)-
next line contains:
-Post Title (div aligned left), Date/Time + Comments (div aligned left), 'click to read more' (div aligned right)-
and what i want is for the post content to be toggled and balanced below all of this and displayed using the full width when you click 'click to read more'. also, will it contract if i click the link once more?
thank you in advance for any assistance.