• I have a custom plugin which have lots of table. that’s why i need a proper pagination.
    Now i have a pagination but it show all 1 to 80 serially.
    Here is that code for pagination.

    <?php
    
    echo '<div id="pager">Page : <div class="btn-group">';
    while( $loopLimit != $loopStart )
    {
    	echo '<a class="btn" href="admin.php?page=wp-glossary&requireTab=viewDelEditWord&totalItems='.$totalItems.'&currentPage='.$loopStart.'&orderByWord='.$_REQUEST["orderByWord"].'"';
    	if ($loopStart == $currentPage) {echo ' id="activeParer"';}
    	echo '>'.$loopStart.'</a>';
    	$loopStart ++ ;
    }
    echo '</div></div>';
    
    ?>

    Here is present pegination view: https://dl.dropboxusercontent.com/u/94213641/etc/pagination1.png

    I want 1 2 3 4….10 11 12 like this. how i change this.
    Any idea?

  • The topic ‘Pagination for custom plugin backend’ is closed to new replies.