Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $params = array( 'limit' => -1 );
- $pods = pods( 'sop_course', $params );
- if ( $pods->total() > 0 ) {
- while( $pods->fetch() ) {
- //reset id
- $pods->id = $pods->id();
- //get the template
- $temp = $pods->template( 'All Courses Archive Page' );
- //output template if it exists
- if ( isset( $temp ) ) {
- echo $temp;
- }
- }
- }
- else {
- echo 'No content found.';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement