Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php include (TEMPLATEPATH . '/headerAdmin.php'); ?>
- <div id="primary" class="content-area">
- <main id="main" class="site-main" role="main">
- <?php get_sidebar(); ?>
- <section id="wrap">
- <div id="tableFilter">
- <span class="list-style-buttons">
- <ul>
- <li><h2>Projects</h2></li>
- <li class="gridButton"><a href="#" id="listview" class="switcher active"><img src="<?php bloginfo('template_url'); ?>/images/list-view-active.png" alt="List"></a></li>
- <li class="gridButton"><a href="#" id="gridview" class="switcher"><img src="<?php bloginfo('template_url'); ?>/images/grid-view.png" alt="Grid"></a></li>
- <li class="gridButton"><span>View</span></li>
- </ul>
- </span>
- </div>
- <section id="products" class="list clearfix">
- <?php
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- $project = new WP_Query( array(
- 'post_type' => array( 'projects'),
- 'posts_per_page' => -1,
- 'paged' => $paged,
- 'meta_query' => array(
- array(
- 'key' => 'a_client', // name of custom field
- 'value' => '"' . get_the_ID() . '"',
- 'compare' => 'LIKE'
- )
- )
- ));
- ?>
- <?php $firstClass = 'firstpost'; ?>
- <?php while ( $project->have_posts() ) : $project->the_post(); ?>
- <article id="post-<?php the_ID(); ?>"<?php post_class(); ?>>
- <div class="left">
- <h5 id="<?php echo $firstClass; ?><?php $firstClass = ""; ?>">New</h5>
- <h3><?php the_title( '' ); ?></h3>
- <span>Project Type: <?php $terms_as_text = get_the_term_list( $post->ID, 'tagwork', '', ', ', '' ) ; echo strip_tags($terms_as_text);?></span>
- </div>
- <div class="left">
- <h4>Date Added</h4>
- <span><?php the_time('l, F jS, Y') ?></span>
- </div>
- <div class="left">
- <h4>Project Status</h4>
- <span><?php echo get_post_meta($post->ID, 'status_element_grid_class_meta_box', true); ?></span>
- </div>
- <div class="right">
- <ul>
- <li><a href="<?php echo get_permalink(); ?>">View</a></li>
- <li>Download</li>
- <li>Comment</li>
- </ul>
- </div>
- </article>
- <?php endwhile; ?>
- </ul>
- </section>
- </main><!-- #main -->
- </div><!-- #primary -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement