Advertisement
matthillco

Untitled

Aug 4th, 2014
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.26 KB | None | 0 0
  1. <?php
  2. /**
  3.  *
  4.  * This is the most generic template file in a WordPress theme
  5.  * and one of the two required files for a theme (the other being style.css).
  6.  * It is used to display a page when nothing more specific matches a query.
  7.  * E.g., it puts together the home page when no home.php file exists.
  8.  * Learn more: http://codex.wordpress.org/Template_Hierarchy
  9.  *
  10.  * @package Anisometric
  11.  */
  12.  
  13. /* Template Name: Homepage */
  14.  
  15. get_header(); ?>
  16.  
  17. <?php get_sidebar(); ?>
  18.  
  19.     <!-- START .main -->
  20.     <section class="main group">
  21.  
  22.         <!-- START #content -->
  23.         <div id="content" class="site-content fullwidth" role="main">
  24.  
  25.             <!-- REPEATER for ARTICLE LINKS -->
  26.             <?php if( have_rows('article_link_repeater') ): ?>
  27.              
  28.                 <!-- START .grid-container -->
  29.                 <div class="grid-container group">
  30.              
  31.                 <?php while( have_rows('article_link_repeater') ): the_row();
  32.              
  33.                     // vars
  34.                     $link_object = get_sub_field('article_link_object');
  35.  
  36.                     echo '<pre>';
  37.                         print_r( $link_object  );
  38.                     echo '</pre>';                 
  39.  
  40.                 ?>
  41.  
  42.              
  43.                 <?php endwhile; ?>
  44.              
  45.                 </div>
  46.                 <!-- END .grid-container -->
  47.              
  48.             <?php endif; ?>
  49.             <!-- END REPEATER -->
  50.  
  51.  
  52.  
  53.         </div><!-- END #content -->
  54.  
  55.     </section><!-- END .main -->
  56.  
  57. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement