SHOW:
|
|
- or go back to the newest paste.
1 | - | <?php |
1 | + | <?php if ( have_posts() ) : ?> |
2 | - | $params = array( 'limit' => -1 ); |
2 | + | <?php while ( have_posts() ) : the_post(); ?> |
3 | - | $pods = pods( 'sop_course', $params ); |
3 | + | <?php $pods->fetch( get_the_ID() ); ?> |
4 | - | if ( $pods->total() > 0 ) { |
4 | + | //reset id |
5 | - | while( $pods->fetch() ) { |
5 | + | |
6 | - | |
6 | + | |
7 | - | //reset id |
7 | + | |
8 | $temp = $pods->template( 'All Courses Archive Page' ); | |
9 | //output template if it exists | |
10 | if ( isset( $temp ) ) { | |
11 | echo $temp; | |
12 | } | |
13 | <?php endwhile; ?> | |
14 | <?php else: ?> | |
15 | - | } |
15 | + | No Content Found |
16 | - | |
16 | + | <?php endif; ?> |