I need help with Wordpress because I would like to load posts
without refresh
or reload
of the page. I have a menu that returns posts of a certain category in a <div>
to the left and I would like to be able to load in the <div>
to the right the content referring to the hyperlink that was clicked. What's more, this is inside a fancybox, which is why there can be no reload. The HTML structure is this:
<div id="floatpost" role="main">
<!-- section -->
<section>
<div class="rReleases">
<div id="menu" class="rPosts">
<ul>
<?php
$recent = new WP_Query("cat=7");
while ($recent->have_posts()) : $recent->the_post();
?>
<li>
<p class="title">
<?php the_time('j / m'); ?> - <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</p>
</li>
<?php
endwhile;
?>
</ul>
</div>
<div id="content" class="rPost">
</div>
</div>
</section>
<!-- /section -->
</div>