>
'', 'link_before' => '', 'link_after' => '' ) ); ?>
', '' ); ?>
'; $client = get_post_meta( $post->ID, 'client', true ); $args = array ( 'order_by' => 'desc', 'tax_query' => array( array( 'taxonomy' => 'jetpack-portfolio-tag', 'field' => 'slug', 'terms' => $client, ) ), 'posts_per_page' => 10, ); $query = new WP_Query( $args ); // The Loop (load Projects tagged with the specific Jetpack-Portfolio-Tag specified in the Custom Fields for this Page) if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); echo '
'; get_template_part( 'components/features/portfolio/content', 'portfolio' ); echo '
'; } } else { get_template_part( 'content', 'none' ); } // Restore original Post Data wp_reset_postdata(); echo '
'; //get_template_part( 'jetpack', 'testimonial' ); // @TODO Write this as a function that will run anywhere - currently only works on singular() pages // Figure out how to get JUST the Testimonial(s) related to THIS particular Client $testimonial = get_post_meta( get_the_ID(), 'client_testimonial', true ); // Check to be sure we actually HAVE testimonials set for this Page, otherwise, we get ALL testimonials from everywhere if( has_category( $testimonial ) ) { $args = array ( 'post_type' => 'jetpack-testimonial', 'category_name' => $testimonial, ); $query = new WP_Query( $args ); // The Loop (load the Testimonial with a Custom Field tag for this particular Jetpack-Portfolio-Tag) if ( $query->have_posts() ) { echo '
'; echo '
'; while ( $query->have_posts() ) { $query->the_post(); echo '
'; /* * Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part( 'components/features/testimonials/content', 'testimonial' ); echo '
'; } echo '
'; echo '
'; } // Restore original Post Data wp_reset_postdata(); } // END $testimonial check ?>