WordPress.org

Forums

Limited category list (2 posts)

  1. rasto
    Member
    Posted 6 years ago #

    hi, when i click in sidebar on any category it list limited only 10 posts with More and Previous links.

    Is it possible to increase this limit or disable limit ?
    Where can i find this limit ?

    <?php
    get_header();
    ?>
    
    <div id="content">
    <!-- MAIN CONTENT -->
    <div id="main">
    <div class="right_side">
    
    <!-------first layer---------->
    <dl>
    			<?php if (have_posts()) : ?>
    
    			<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
    			<?php /* If this is a category archive */ if (is_category()) { ?>
    			<h2>Archive for the '<?php echo single_cat_title(); ?>' Category (<em>Chronologically Listed</em>)</h2>
    
    			<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    			<h2>Archive for <?php the_time('F jS, Y'); ?></h2>
    
    		 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    			<h2>Archive for <?php the_time('F, Y'); ?></h2>
    
    			<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    			<h2>Archive for <?php the_time('Y'); ?></h2>
    
    			<?php /* If this is a search */ } elseif (is_search()) { ?>
    			<h2>Search Results</h2>
    
    			<?php /* If this is an author archive */ } elseif (is_author()) { ?>
    			<h2>Author Archive</h2>
    
    			<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    			<h2>Blog Archives</h2>
    
    			<?php } ?>
    
    		 <ul class="dates">
    
    		 	<?php while (have_posts()) : the_post(); ?>
    			<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a> |
    			<small>
    			<!-- Posted by <?php the_author() ?> on --> <?php the_time('d M Y');?> under <?php the_category(', ') ?>
    			</small>
    			</li>
    
    			<?php endwhile; ?>
    		</ul>
    
    		<div class="navigation">
    			<div class="left"><?php next_posts_link('More &laquo;') ?></div>
    			<div class="right"><?php previous_posts_link('&raquo; Previous ') ?></div>
    		</div>
    
    	<?php else : ?>
    
    		<h1>Not Found</h1>
    
    	<?php endif; ?>
    
    <div class="clear">
    </div>
    </dl>
    <!-------end first layer---------->
    
    </div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    thx for reply

  2. Shane G
    Member
    Posted 6 years ago #

    Hi,

    To work around with category please go to the wp-include/category-template.php and manage it with your desired requirement..

    Thanks,

    Shane G.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.