• Resolved Rick5150

    (@rick5150)


    I have this page where all of my testimonials are shown and it works great. The problem is that it appears to be linked to the front page reading settings so that it is only displaying the last 5 posts.

    How can I show unlimited testimonials on that one page, or at worst display a READ MORE that will allow the older posts to show?

    I am fairly code illiterate, but the current code is:

    <?php
    
    /*
    
    Template Name: Testimonials
    
    */
    
    ?>
    
    <?php get_header(); ?>
    
    <div id="main">
    
    <p>Here are some of our testimonials. These are from <em>actual customers</em> who have received a jacket from us. All documentation and original testimonials are on file.</p>
    
    <?php query_posts('cat=113');
    
    while (have_posts()) : the_post();
    
    the_content();
    
    endwhile;
    
    ?>
    
    </div>
    
    <?php get_footer(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Rick5150

    (@rick5150)

    Solved like this…

    <?php
    /*
    
    Template Name: Testimonials
    
    */
    
    $catquery = new WP_Query( 'cat=113&posts_per_page=30' );
    while($catquery->have_posts()) : $catquery->the_post();
    ?>
    
    <?php get_header(); ?>
    
    <ul>
    
    <?php the_content(); ?>
    </ul>
    
    </ul>
    
    <?php endwhile; ?>
    <?php get_footer(); ?>
    Thread Starter Rick5150

    (@rick5150)

    I guess this should be “resolved” now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Template Only Returning 5 Results’ is closed to new replies.