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 (get_field('page_content_repeater')) { ?> | |
<?php while (the_repeater_field('page_content_repeater')): ?> | |
<?php | |
/* Pull from users select choice in ACF */ | |
$choice1 = 'string_1'; | |
$choice2 = 'string_2'; | |
?> | |
<?php if (get_sub_field('your_selection_field') === $choice1) { ?> | |
<!--Your Content--> |
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 | |
$testimonial_check = get_field('your_relationship_field_name'); | |
if ($testimonial_check) { | |
?> | |
<?php foreach (get_field('your_relationship_field_name') as $relationship): ?> | |
<p>"<?php echo get_post_meta($relationship->ID, 'some_field_content', true); ?>"</p> | |
<small><?php echo get_the_title($relationship->ID); ?> | <?php echo get_post_meta($relationship->ID, 'some_more_field_content', true); ?> </small> | |
<?php endforeach; ?> |
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
$(document).ready(function() { | |
$('.carousel').carousel(); | |
$(".carousel-indicators li:first").addClass("active"); | |
$(".carousel-inner .item:first").addClass("active"); | |
}); |
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
//Bread crumbs created | |
function wordpress_breadcrumbs() { | |
$delimiter = '|'; | |
$currentBefore = '<span class="current">'; | |
$currentAfter = '</span>'; | |
if ( !is_home() && !is_front_page() || is_paged() ) { | |
echo '<div id="crumbs">'; | |
global $post; | |
if ( is_page() && !$post->post_parent ) { | |
echo $currentBefore; |