7
I am in need of a Wordpress help as I would like to load posts
without refresh
or reload
page. I have a menu that returns posts from a certain category in a <div>
left and would like to be able to press the <div>
a right the content referring to the hyperlink that was clicked. Moreover, 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>
It’s quite different, it’s in a totally different context.
– Marcos Vinicius