Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // PRECODE
- $slug = pods_url_variable( 1 );
- $params = array( 'where' => 't.slug = "' . $slug . '"', 'limit' => 1, 'search' => false, 'pagination' => false );
- $pods = new Pod( 'artist', $params );
- if ( !$pods->fetchRecord() ) {
- wp_redirect('../');
- die();
- }
- <?php
- // MAIN CODE
- global $pods;
- $pods->resetPointer(0);
- ?>
- <div id="primary">
- <div id="content" role="main">
- <?php echo $pods->showTemplate('artist_detail'); ?>
- </div>
- </div>
Add Comment
Please, Sign In to add comment