Just wondering if anyone could shed some light on this.
I'm using a function created to be used with shortcode,
it pulls data from custom posts type event within the category specified.
I'm getting the data back how i want it but just too many,
4 of 1, 5 of another and 4 again duplicate results from the 3 posts i'm testing with.
I've got some text on a page, with the shortcode below it.
using this loop to call it all:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php the_content()?> <?php endwhile; endif; ?>
The function code's here:
and its based on a tutorial by Noel Tock here
Many thanks for any advice.