List the posts that are in my category
I having a problem with creating a list of posts of a specific category, but not only just a list- I want to make it possible for people to be able to click “Next” and display the a new page of results. Here is my site: http://www.midnightreview.co.uk – if you click on one of the genre pages you will see it displays 10 results and has the feature of clicking “next page”, but when you do it it will display the same 10 posts… I know that the code I done at least collects all of the posts because on each genre page it has a different amount of search pages to click on (for example ‘adventure’ as 4 pages and ‘action’ has 5). So my main problem is really continuing the list through to the next page. Please could someone help me. Sadly my knowledge of php isnt that strong so if you could explain it in easy terms i would be greatful
div id="<?php echo $content_id?>" class="div-content clearfix"> <? query_posts('cat=12'); ?> <?php if ( have_posts() ) : ?> <?php if($swift_design_options['blog_or_mag_archives']=='list') echo '<ul class="post-listing">'?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( $layout, get_post_format() ); ?> <?php endwhile; ?> <?php if($swift_design_options['blog_or_mag_archives']=='list') echo '</ul>'?>
That is the code im currently using, again it is very basic as im not that familiar with the language
- The topic ‘List the posts that are in my category’ is closed to new replies.