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
<head> | |
<?php | |
wp_head(); | |
?> | |
</head> | |
<body> | |
<?php |
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 ( function_exists( 'have_rows' ) && have_rows( 'page_section' ) ) : ?> | |
<?php while ( have_rows( 'page_section' ) ) : the_row(); ?> | |
<?php get_template_part( 'content', 'page-section' ); ?> | |
<?php endwhile; ?> | |
<?php if (is_front_page() && count( get_field( 'page_section' ) ) > 1) : ?> |
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
function my_acf_get_fields_in_group( $group_id ) { | |
$acf_meta = get_post_custom( $group_id ); | |
$acf_fields = array(); | |
foreach ( $acf_meta as $key => $val ) { | |
if ( preg_match( "/^field_/", $key ) ) { | |
$acf_fields[$key] = $val; | |
} | |
} |
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 | |
$images = get_field('floorplans'); | |
if( $images ): ?> | |
<div id="slider" class="flexslider"> | |
<div class="col-md-3"> | |
<?php foreach( $images as $image ): ?> | |
<a href="<?php echo $image['url']; ?>" data-lightbox="floorplans"><img src="<?php echo $image['sizes']['medium']; ?>" alt="<?php echo $image['alt']; ?>" /></a> | |
<?php endforeach; ?> | |
</div> |
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
<section class="member-list"> | |
<?php if( have_rows('repeater_field') ): ?> | |
<?php while ( have_rows('repeater_field') ) : the_row(); ?> | |
<?php $user = get_sub_field('user_field'); ?> | |
<?php $userID = array_values($user)[0]; ?> | |
<?php $first_name = get_user_meta($userID, 'first_name', 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
<?php | |
/** | |
* Template Name: Events | |
*/ | |
get_header(); ?> | |
<div id="primary" class="site-content"> | |
<div id="content" role="main"> |
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
add_action('acf/input/admin_head', 'lh_acf_admin_head'); | |
function lh_acf_admin_head() { | |
?> | |
<style type="text/css"> | |
.acf-editor-wrap iframe { | |
height: 150px !important; | |
min-height: 150px; | |
} | |
.acf-editor-wrap .mce-fullscreen iframe{ |
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 | |
add_action('acf/input/admin_head', 'my_acf_admin_head'); | |
function my_acf_admin_head() { | |
?> | |
<script type="text/javascript"> | |
(function($) { | |
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 | |
$carousel_images = get_field('home_page_carousel_images'); | |
$imageLimit = 8; | |
if( $carousel_images ): | |
$counter = 0; | |
?> | |
<div class="carousel-inner"> |
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
<!-- testing flexible clone field --> | |
<?php | |
// check if exists | |
if( have_rows('flexi_layouts_layout_elements') ): | |
/* load the cloned field group*/ | |
$flexcontent = get_field('flexi_layouts_layout_elements'); | |
//dump the data to verify the correct layout is returned | |
//var_dump($flexcontent); | |
// loop through the rows of data |
OlderNewer