> ID ), 'lodestar-featured-image' ); $post_thumbnail_id = get_post_thumbnail_id( $post->ID ); $thumbnail_attributes = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'lodestar-featured-image' ); //Calculate aspect ratio: h / w * 100% $ratio = 100; if ( isset($thumbnail_attributes[2] ) && isset( $thumbnail_attributes[1] ) && $thumbnail_attributes[1] > 0 ) { $ratio = $thumbnail_attributes[2] / $thumbnail_attributes[1] * 100; } ?>
', '' ); ?>
→', 'lodestar' ), array( 'span' => array( 'class' => array() ) ) ), the_title( '"', '"', false ) ) ); ?>
'jetpack-portfolio', 'posts_per_page' => 6, 'no_found_rows' => true, ); $project_query = new WP_Query ( $args ); ?> have_posts() ) : ?>
have_posts() ) : $project_query -> the_post(); get_template_part( 'components/features/portfolio/content', 'portfolio' ); endwhile; ?>
'rand', 'post_type' => 'jetpack-testimonial', 'posts_per_page' => 2, 'no_found_rows' => true, ); $testimonial_query = new WP_Query ( $args ); ?> have_posts() ) : ?>
have_posts() ) : $testimonial_query -> the_post(); get_template_part( 'components/features/testimonials/content', 'testimonials' ); endwhile; ?>
2, 'post_status' => 'publish', 'ignore_sticky_posts' => true, 'no_found_rows' => true, ); $recent_posts = new WP_Query ( $args ); ?> have_posts() ) : ?>
have_posts() ) : $recent_posts->the_post(); get_template_part( 'components/post/content', 'excerpt' ); endwhile; ?>