SHARE
TWEET

Untitled

a guest Feb 10th, 2013 273 Never
  1. <?php
  2.  
  3. // Get 3 records per page, ordered by name ascending,
  4. $params = array( 'orderby' => 'name ASC', 'limit' => 3 );
  5.  
  6. // Maps to the new find method
  7. $pod_albums = pods( 'albums', $params );
  8.  
  9. // Display it to the template
  10. echo $pod_albums->find( $params )->template( 'album_list' );
  11.  
  12. // Display the pagination
  13. echo $pod_albums->pagination();
  14.  
  15. ?>
RAW Paste Data
Top