Plugin Directory

Changeset 749157


Ignore:
Timestamp:
08/01/2013 09:14:09 AM (13 years ago)
Author:
ivan82
Message:

readmefile code update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • paginate/trunk/readme.txt

    r749111 r749157  
    4343*Install and Activate*
    4444
    45 1. Download and unzip 'paginate.zip'.
    46 2. Upload the 'paginate' directory to the '/wp-content/plugins/' directory.
    47 3. Activate the plugin through the 'Plugins' menu in WordPress.
     451. Download and unzip `paginate.zip`.
     462. Upload the 'paginate' directory to the `/wp-content/plugins/` directory.
     473. Activate the plugin through the `Plugins` menu in WordPress.
    48484. In your theme, modify the CSS file to change the look and feel of your pagination.
    4949
     
    5151
    52523 line implementation
    53 <?php
     53
     54`<?php
    5455$totalitems = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->users");
    5556$p = new paginate($totalitems);
    5657echo $p->get_pagination();
    57 ?>
     58?>`
    5859
    5960
    6061Post onpage argument
    61 <?php
     62
     63`<?php
    6264$onPage = $_GET['page']
    6365$totalitems = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->users");
    6466$p = new paginate($totalitems);
    6567echo $p->get_pagination($onPage);
    66 ?>
     68?>`
    6769
    6870
    6971Example implementation
    70 <?php
     72
     73`<?php
    7174//get total items from database
    7275$totalitems = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->users");
     
    8689//pagination html
    8790echo $p->get_pagination();
    88 ?>
     91?>`
Note: See TracChangeset for help on using the changeset viewer.