Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
- $display_type = po_get_display_type();
- ?>
- <header class="entry-header">
- <?php if ( po_breadcrumbs_need_to_show() ) : ?>
- <?php pojo_breadcrumbs(); ?>
- <?php endif; ?>
- <h1 class="page-title"><?php echo $term->name; ?>Archives</h1>
- </header>
- <?php
- global $wp_query;
- $args = array_merge( $wp_query->query, array( 'post_type' => 'products' ) );
- query_posts( $args );
- ?>
- products category taxonomy
- <?php if ( have_posts() ) : ?>
- <?php do_action( 'pojo_before_content_loop', $display_type ); ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <li class="product-grid" id="post-<?php the_ID(); ?>">
- <a href="<?php the_permalink(); ?>">
- <div class="image"><?php if ( has_post_thumbnail() ) {
- the_post_thumbnail('thumbnail');
- }?> </div>
- <h3><?php the_title(); ?></h3></a>
- <div class="product-price"><span>₪</span><?php the_field('price'); ?></div>
- <?php
- //http://wpquestions.com/question/showChrono/id/9730
- $values = get_field('features');
- if($values)
- {
- echo '<ul class="features">';
- foreach($values as $value)
- {
- echo '<li><img src="'.get_bloginfo('stylesheet_directory').'/images/' . $value . '.png"></li>';
- }
- echo '</ul>';
- }
- ?>
- </li>
- <?php endwhile; ?>
- <?php do_action( 'pojo_after_content_loop', $display_type ); ?>
- <?php pojo_paginate(); ?>
- <?php else : ?>
- <?php pojo_get_content_template_part( 'content', 'none' ); ?>
- <?php endif; ?>
Add Comment
Please, Sign In to add comment