Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div id="impactBox">
- <div class="container">
- <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("post_type=project&orderby=RAND&order=ASC&cat=6"); ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <?php $terms = wp_get_post_terms($post->ID,'category');
- foreach ($terms as $term) {
- $termcomp = $term->taxonomy . '_' . $term->term_id; } ?>
- <?php the_field('tagline' , $termcomp); ?>
- <?php endwhile; endif; ?>
- </div>
- </div>
- <div id="content" role="main">
- <div class="container">
- <div class="entryFull">
- <h1>Alpha360 Projects</h1><?php the_field('tagline'); ?>
- <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("post_type=project&orderby=RAND&order=ASC&cat=6"); ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <?php $attachment_id = get_post_thumbnail_id( get_the_ID()); // attachment ID
- $image_attributes = wp_get_attachment_image_src( $attachment_id ); // returns an array ?>
- <div class="boxgrid400 peek <?php echo (++$j % 2 == 0) ? 'evenclient' : 'oddclient'; ?>">
- <a title="<?php the_title(); ?> - LittleIdeas Design Image" rel="prettyPhoto"><?php the_post_thumbnail('client_thumb', array( 'class' => "cover")); ?></a>
- <div class="projectDesc">
- <h3><?php the_title(); ?></h3>
- <?php the_excerpt(); ?></p>
- <a class="button" href="<?php $projectlink = (the_field('project_link')); $projectlink = (the_field('project_link2')); if (empty ($projectlink)) { echo $projectlink2; } else { echo $projectlink; } ?>" title="<?php the_title(); ?> - LittleIdeas Design"><?php the_field('button_text'); ?></a>
- </div>
- </div>
- <?php endwhile; endif; ?>
- <?php $terms = wp_get_post_terms($post->ID,'category');
- foreach ($terms as $term) {
- $termcomp = $term->taxonomy . '_' . $term->term_id; } ?>
- <?php echo the_field('tagline' , $termcomp); ?>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement