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 | |
$rows1 = get_field('galerie_isolation' ); // get all the rows | |
$first_row1 = $rows[1]; // get the first row | |
$title1=$first_row1['titre_galerie']; | |
$first_row_image1 = $first_row1['les_images' ]; // get the sub field value | |
?> | |
<?php if( have_rows('galerie_isolation') ): |
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
<div class="carou"> | |
<?php if( have_rows('galerie_isolation') ): | |
while ( have_rows('galerie_isolation') ) : the_row(); ?> | |
<div class="title_slide"> | |
<h3><?php $titre_galerie = the_sub_field('titre_galerie'); ?></h3> | |
<div class="nav"> | |
<span class="ion-arrow-left-c prev-button"></span> |
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 | |
/* | |
Update an ACF custom field in wordpress with all the dealer id's when a select all | |
checbox is ticked. | |
Created by craig@123marbella.com on 24th of July 2017 | |
The ACF plugin is great but its not possible to "select all" records in a multi select | |
so we need to find a way to select all records so the user does not have to select each | |
record one by one. So easiest thing to do is make an extra checkbox field called "select all", |
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 | |
/** | |
* | |
* Create ACF single destination content | |
* | |
* Intro content | |
* Intro image | |
* jquery Accordion | |
* | |
* @since 1.0.0 |
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 | |
class craft_child_features { | |
static function setup() { | |
add_filter( 'craft_acf_parent_features', __CLASS__ . '::craft_child_remove_acf_groups' ); | |
} | |
/** | |
* [craft_child_remove_acf_groups description] | |
* @param [type] $features [description] |
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 | |
$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
<?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) : ?> |