Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Get 3 records per page, ordered by name ascending,
- $params = array( 'orderby' => 'name ASC', 'limit' => 3 );
- // Maps to the new find method
- $pod_albums = pods( 'albums', $params );
- // Display it to the template
- echo $pod_albums->find( $params )->template( 'album_list' );
- // Display the pagination
- echo $pod_albums->pagination();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement