Guest User

Untitled

a guest
Feb 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Stockists
  4. */
  5. ?>
  6.  
  7. <?php get_header(); ?>
  8.  
  9. <?php include (TEMPLATEPATH . '/maps-api.php'); ?>
  10.  
  11. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  12.  
  13. <div class="post grid_12" id="post-<?php the_ID(); ?>">
  14.  
  15. <div class="hero"><h1><?php the_title(); ?></h1></div>
  16.  
  17. </div>
  18.  
  19. <div class="page grid_12">
  20.  
  21. <ul id="stockists">
  22.  
  23. <?php $loop = new WP_Query( array( 'post_type' => 'stockist' ) ); ?>
  24.  
  25. <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
  26.  
  27. <li class="head grid_12 alpha omega">Victoria</li>
  28.  
  29. <li class="stockist" class="grid_12 alpha omega">
  30. <ul>
  31. <li class="grid_2 alpha"><strong><?php the_title(); ?></strong></li>
  32. <li class="grid_4">
  33. <a onclick="codeAddress()" href="" id="address" data-reveal-id="map_modal">
  34. <?php meta('address'); ?>
  35. </a>
  36. </li>
  37. <li class="grid_2"><?php meta('phone'); ?></li>
  38. <li class="grid_2"><a href="mailto:<?php meta('email'); ?>"><?php meta('email'); ?></a></li>
  39. <li class="grid_2 omega"><a href="<?php meta('website'); ?>" class="button small">Website &raquo;</a></li>
  40. </ul>
  41. </li>
  42.  
  43. <?php endwhile; ?>
  44.  
  45. <?php include (TEMPLATEPATH . '/map-modal.php'); ?>
  46.  
  47. </ul>
  48.  
  49. <?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>
  50.  
  51. </div>
  52.  
  53. <?php endwhile; endif; ?>
  54.  
  55. <?php get_sidebar(); ?>
  56.  
  57. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment