• Okay, so i have my category pages which list 9 posts, i want to add a button which you can press which takes you to another page which lists all the posts in that category. How do i do this ?

    Any help would be greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sollynz

    (@sollynz)

    Any one got any ideas ?

    Here’s one idea: Create a page for this and then use a custom page template for it and put something like the following code in the page template (change 44 to whatever category ID you want):

    <ul>
    <?php $posts = query_posts($query_string . '&orderby=title&order=asc&posts_per_page=-1&cat=44'); while (have_posts()) : the_post(); ?>
    	<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
    	<?php endwhile; ?>
    </ul>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘View All Page’ is closed to new replies.