Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 10th, 2013  |  syntax: PHP  |  size: 0.35 KB  |  views: 202  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. ?>