SHARE
TWEET

list page temp

a guest Jan 8th, 2014 134 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /* Template Name: Pod Page Template */
  3. get_header(); ?>
  4.  
  5.  
  6.  
  7.  
  8. <div class="section group">
  9.  
  10. <?php get_sidebar(); ?>
  11.  
  12.  
  13.        
  14.        
  15.         <!--Top banner-->
  16.         <div class="col span_6_of_8 top_banner">
  17.        
  18.                 <h2 class="strapline">Over 40 years servicing the UK</h2>        
  19.                  
  20.                
  21.                
  22.                
  23.         </div>
  24.        
  25.         <!--Top banner-->
  26.  
  27.  
  28.  
  29.        
  30.         <!--MAIN Content Col-->
  31.         <div class="col nomargin span_6_of_8">
  32.        
  33.         <h1 class="redbox">Projects</h1>
  34.        
  35.         <p>Below is just a small indicative sample of the many projects we have completed.<br />
  36.         Please <a href="http://c2626348.myzen.co.uk/dev/contact-us">contact us for more details</a>.</p>       
  37.        
  38.         </div>
  39.        
  40.         <?php
  41. //this is normally where the WP Loop would be. Instead we add a loop to get pods stuff
  42.   $mypod = pods('projects');
  43.   $mypod->find('name ASC');      
  44. ?>
  45.  
  46.   <?php while ( $mypod->fetch() ) : ?>
  47.  
  48.     <?php
  49.       // set our variables
  50.       $name= $mypod->field('name');
  51.       $permalink= $mypod->field('permalink');
  52.       $project_image= $mypod->field('project_image');
  53.       $project_intro= $mypod->field('project_intro');
  54.       $project_description= $mypod->field('project_description');
  55.       $project_contacts= $mypod->field('project_contacts');
  56.      
  57.      
  58.     ?>
  59.  
  60.  
  61. <div class="col span_3_of_8">
  62. <h2><a href="<?php echo $permalink; ?>"><?php echo $name; ?></a></h2>
  63.  
  64. <img src="<?php echo $project_image['guid']; ?>" alt="<?php echo $name; ?> Project"  />
  65. <p><?php echo $project_intro; ?><br />
  66. <a href="<?php echo $permalink ?>">Read more &raquo;</a></p>
  67. </div>
  68.  
  69. <?php endwhile; ?>
  70.  
  71.                  
  72.        
  73.        
  74.         <!--MAIN Content Col-->
  75.        
  76.        
  77.                
  78.        
  79.        
  80.        
  81. </div>
  82. <!--Section-->
  83.  
  84.  
  85.  
  86.                        
  87.                
  88.  
  89.  
  90.  
  91. <?php get_footer(); ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top