This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a class="member" href="<?php the_permalink(); ?>"> | |
<?php echo get_acf_image_with_alt( 'serious_photo', get_the_ID(), 'team-member', false, 'serious-photo' ); ?> | |
<?php echo get_acf_image_with_alt( 'funny_photo', get_the_ID(), 'team-member', false, 'funny-photo' ); ?> | |
<p class="name"><?php the_title(); ?></p> | |
<p class="title"><?php the_field( 'team_page_title' ); ?></p> | |
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load in ACF image with alt text | |
function get_acf_image_with_alt( $imagefield, $postID, $imagesize = 'full', $subfield = false, $class = '' ) { | |
if ( $subfield == true ) { | |
$imageID = get_sub_field( $imagefield, $postID ); | |
} | |
else { | |
$imageID = get_field( $imagefield, $postID ); | |
} | |
$image = wp_get_attachment_image_src( $imageID, $imagesize ); | |
$alt_text = get_post_meta( $imageID , '_wp_attachment_image_alt', true ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Set background for: | |
* - featured image :before | |
* - featured image :before | |
* - post thumbmail :before | |
* - post thumbmail :before | |
* - Submenu | |
* - Sticky Post | |
* - buttons | |
* - WP Block Button |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( have_rows('loc_testimonials') ) : | |
?> | |
<h2>Testimonials</h2> | |
<div class="bbo-columns"> | |
<?php | |
while( have_rows('loc_testimonials') ) : the_row(); | |
echo '<div class="bbo-column">'; |