WordPress.org

Ready to get started?Download WordPress

Forums

Limit The Number of Table Rows on a page? (1 post)

  1. elyung
    Member
    Posted 1 year ago #

    i am using the twenty eleven theme. I have a lot of table rows on my page. i would like to limit the number of rows on the page. i created a custom sidebar template. anyone have any idea how i can limit the number of rows to 20 rows per page and anything beyond that goes to page two. thank you. i create the tables using html in wordpress am not using a plugin.

    This is my code for my custom sidebar.

    <?php
    /**
     * Template Name: SL Sidebar Template
     * Description: A Page Template that adds a sidebar to pages
     *
     * @package WordPress
     * @subpackage Twenty_Eleven
     * @since Twenty Eleven 1.0
     */
    
    get_header(); ?>
    
    		<div id="primary">
    			<div id="content" role="main">
    
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<?php get_template_part( 'content', 'page' ); ?>
    
    					<?php comments_template( '', true ); ?>
    
    				<?php endwhile; // end of the loop. ?>
    
    			</div><!-- #content -->
    <?php wp_pagenavi(); ?>
    		</div><!-- #primary -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    [please mark any posted code - http://codex.wordpress.org/Forum_Welcome#Posting_Code ]

    [bump moderated]

Topic Closed

This topic has been closed to new replies.

About this Topic