Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Template Name: Pod Page 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">
- <h1 class="redbox">Projects</h1>
- <p>Below is just a small indicative sample of the many projects we have completed.<br />
- Please <a href="http://c2626348.myzen.co.uk/dev/contact-us">contact us for more details</a>.</p>
- </div>
- <?php
- //this is normally where the WP Loop would be. Instead we add a loop to get pods stuff
- $mypod = pods('projects');
- $mypod->find('name ASC');
- ?>
- <?php while ( $mypod->fetch() ) : ?>
- <?php
- // 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');
- ?>
- <div class="col span_3_of_8">
- <h2><a href="<?php echo $permalink; ?>"><?php echo $name; ?></a></h2>
- <img src="<?php echo $project_image['guid']; ?>" alt="<?php echo $name; ?> Project" />
- <p><?php echo $project_intro; ?><br />
- <a href="<?php echo $permalink ?>">Read more »</a></p>
- </div>
- <?php endwhile; ?>
- <!--MAIN Content Col-->
- </div>
- <!--Section-->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement