Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Template Name: Pod Page Single Template */
- get_header(); ?>
- <div class="section group">
- <?php get_sidebar(); ?>
- <!--Top banner-->
- <div class="col span_6_of_8 top_banner">
- <h2 class="strapline">Over 40 years servicing the UK</h2>
- </div>
- <!--Top banner-->
- <!--MAIN Content Col-->
- <div class="col nomargin span_6_of_8">
- <?php
- //this is normally where the WP Loop would be. Instead we add a loop to get pods stuff
- $mypod = pods('projects');
- $mypod = array(
- 'where' => 'permalink = "' . pods_var(-1, 'url') . '"',
- 'limit' => -1);
- $mypod->find('name ASC');
- // set our variables
- $name= $mypod->field('name');
- $permalink= $mypod->field('permalink');
- $project_image= $mypod->field('project_image');
- $project_intro= $mypod->field('project_intro');
- $project_description= $mypod->field('project_description');
- $project_contacts= $mypod->field('project_contacts');
- ?>
- <h1 class="redbox"> <?php echo $name; ?></h1>
- <img src="<?php echo $project_image['guid']; ?>" alt="<?php echo $name; ?> Project" />
- <p><?php echo $project_description; ?></p>
- <p><?php echo $project_contacts; ?></p>
- </div>
- <!--MAIN Content Col-->
- </div>
- <!--Section-->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement