Um, No. Just the title goes into the link. Everything within the ’ ’ after innerHTML is supposed to show up in the <div id=“expansion”> when you click on the link. Do you know how innerHTML works? Here is a tutorial. http://www.cryer.co.uk/resources/javascript/script4.htm#self
You are trying to put the content into the link?
<div id="reviews-leftcolumn">
<?php $my_query = new WP_Query('cat=7');
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID;
?>
<div class="reviews-row">
<span class="reviews-first-row">
<a href="#self" onclick="document.getElementById('expansion').innerHTML = '<?php the_title(); ?>';"><?php the_title(); ?></a>
</span>
<span class="reviews-second-row"><?php the_date(); ?></span>
</div>
<?php endwhile; ?>
</div>
Um, no. I know how to get the content. That is not the problem. The problem is when I get the content … it BREAKS the innerHTML functionality.