Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <section class="row">
- <div class="span4">
- <?php get_sidebar(); ?>
- </div>
- <div class="span8" id="productDetails">
- <ul class="nav nav-tabs">
- <li class="active"><a href="#sr" data-toggle="tab">Search Results</a></li>
- <li><a href="#pf" data-toggle="tab">Printing Features</a></li>
- <li><a href="#ps" data-toggle="tab">Production Speed</a></li>
- <li><a href="#sq" data-toggle="tab">Stock Quality</a></li>
- </ul>
- <section class="tab-content">
- <article class="tab-pane active" id="sr">
- <?php
- if ( have_posts() ) :
- while ( have_posts() ) : the_post();
- // get the post terms
- $post_terms = get_the_terms( $post->ID, 'branding' );
- if ( $post_terms ) {
- $post_terms = array_values( $post_terms );
- foreach ( $post_terms as $key => $term ) {
- $desc = absint( $term->description );
- if ( !$desc ) {
- unset($post_terms[ $key ]);
- }
- }
- if ( $post_terms ) {
- usort($post_terms,'sort_category_rating_terms');
- foreach ( $post_terms as $term ) {
- echo 'category = ' . $term->name;
- echo ' rating = ' . $term->description;
- echo '<br>';
- }
- }
- }
- endwhile;
- else : ?>
- <article id="post-0" class="post no-results not-found">
- <header class="entry-header">
- <h1 class="entry-title"><?php _e( 'No Match Found.', 'twentyeleven' ); ?></h1>
- </header><!-- .entry-header -->
- <p><?php _e( 'Try a different combination or check out these products.', 'twentyeleven' ); ?></p>
- </article><!-- #post-0 -->
- <?php endif; ?>
- </article>
- </section>
- </div>
- </section>
- <?php get_template_part( 'testimonial', 'page' ); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement