/
content-products.php
executable file
·34 lines (32 loc) · 1.58 KB
/
content-products.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<section id="mic-locker">
<div class="products-container">
<div class="row">
<div class="small-12 large-12 columns">
<div class="title-container">
<h2>Mic Locker</h2>
<p>Used throughout Guitar Center’s Web Series, AKG’s high-end<br/> microphones stand for superior sound and outstanding quality.</p>
</div>
<div class="row">
<div class="large-12 column">
<div class="products">
<?php $product_args = array('post_type' => 'gcproducts'); $products = new WP_Query($product_args); ?>
<?php if ($products->have_posts()): ?>
<?php while($products->have_posts()): ?>
<?php $products->the_post(); ?>
<div class="product">
<img src="<?php echo get_thumbnail($products->post->ID); ?>" alt="" />
<div class="product-info">
<h3><?php echo get_the_title(); ?></h3>
<a href="<?php echo get_product_link($post->ID); ?>" target="_blank">Learn More ></a>
</div>
<p class="product-description"><?php echo get_product_description($post->ID); ?> <br/><br/><br/><br/><br/></p>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
</section><!-- #mic-locker -->