ACF functions

Image


Variables

$image = get_field("image");

Functions

1. Data
echo acfImage($image);
Preview
2. Size – Default ‘xl’ (Optional)
echo acfImage($image, 'lg');
Preview
3. Style – Default ‘ ‘ (Optional)
echo acfImage($image, '', 'lightbox');
Preview

Clone Image Svg


Variables

$cloneImageSvg = get_field("clone_image_svg");

Functions

1. Data
echo cloneImageSvg($cloneImageSvg);
Preview

Clone Text


Variables

$cloneText = get_field("clone_text");

Functions

1. Data
echo cloneText($cloneText);
Preview

Lorem ipsum dolor sit amet

2. Tag – Default ‘h3’ (Optional)
echo cloneText($cloneText, 'h6');
Preview
Lorem ipsum dolor sit amet
3. Text Class (Optional)
echo cloneText($cloneText, 'h6', 'custom-class');
Preview
Lorem ipsum dolor sit amet

Clone Textarea


Variables

$cloneTextarea = get_field("clone_textarea");

Functions

1. Data
echo cloneTextarea($cloneTextarea);
Preview

Nulla facilisi. Sed id lectus non nisl venenatis tincidunt porttitor nec lorem. Nullam justo ante, pulvinar in gravida quis, dictum in sem. Mauris imperdiet rhoncus felis ultrices mollis. Vestibulum porttitor consequat quam sit amet mattis. Quisque laoreet aliquet ante vel euismod. Duis orci eros, rhoncus in maximus vitae, convallis at neque. Sed a fringilla ipsum. Aliquam vitae lectus at sem iaculis mattis.

2. Textarea Class (Optional)
echo cloneTextarea($cloneText, 'custom-class');
Preview

Nulla facilisi. Sed id lectus non nisl venenatis tincidunt porttitor nec lorem. Nullam justo ante, pulvinar in gravida quis, dictum in sem. Mauris imperdiet rhoncus felis ultrices mollis. Vestibulum porttitor consequat quam sit amet mattis. Quisque laoreet aliquet ante vel euismod. Duis orci eros, rhoncus in maximus vitae, convallis at neque. Sed a fringilla ipsum. Aliquam vitae lectus at sem iaculis mattis.

Clone Wysiwyg

Variables

$cloneWysiwyg = get_field("clone_wysiwyg");

Functions

1. Data
echo cloneWysiwyg($cloneWysiwyg);
Preview

H3 – Lorem ipsum dolor sit

Sed lobortis, leo in hendrerit malesuada, sapien lectus posuere quam, vitae auctor mauris ipsum eu ante. Integer interdum, ipsum nec luctus placerat, lorem lorem feugiat sapien, nec sagittis sapien nunc id nisl. Sed vel est non tortor suscipit faucibus.

H4 – Lorem ipsum dolor sit amet consectetur

Sed non ligula tortor. In dapibus odio nulla, in sagittis tellus ullamcorper eget. Donec et ex ut nunc auctor sollicitudin. Curabitur nec purus molestie, tristique nisl id, elementum elit. Curabitur egestas urna sit amet nisi malesuada, id semper odio pellentesque. Aenean viverra vel sem at fermentum.

2. Wysiwyg Class (Optional)
echo cloneWysiwyg($cloneWysiwyg, 'custom-class');
Preview

H3 – Lorem ipsum dolor sit

Sed lobortis, leo in hendrerit malesuada, sapien lectus posuere quam, vitae auctor mauris ipsum eu ante. Integer interdum, ipsum nec luctus placerat, lorem lorem feugiat sapien, nec sagittis sapien nunc id nisl. Sed vel est non tortor suscipit faucibus.

H4 – Lorem ipsum dolor sit amet consectetur

Sed non ligula tortor. In dapibus odio nulla, in sagittis tellus ullamcorper eget. Donec et ex ut nunc auctor sollicitudin. Curabitur nec purus molestie, tristique nisl id, elementum elit. Curabitur egestas urna sit amet nisi malesuada, id semper odio pellentesque. Aenean viverra vel sem at fermentum.

Clone Buttons


Variables

$cloneButtons = get_field("clone_buttons");

Functions

1. Data
echo cloneButtons($cloneButtons);
Preview
2. Class – Default ‘btn’ (Optional)
echo cloneButtons($cloneButtons, 'btn');
Preview
3. Button Text (Optional)
echo cloneButtons($cloneButtons, 'btn', 'Custom Text');
Preview

Clone Gallery


Variables

$cloneGallery = get_field("clone_gallery");

Functions

1. Data
echo cloneGallery($cloneGallery);
Preview
2. Style – Default ‘base’ (Optional)
echo cloneGallery($cloneGallery, '');
Preview
2. Style – ‘lightbox’ (Optional)
echo cloneGallery($cloneGallery, 'lightbox');
Preview
2. Style – ‘slider’ (Optional)
echo cloneGallery($cloneGallery, 'slider');
Preview
costa rica 26
costa rica 27
costa rica 25
3. Image Size – Default ‘xl’ (Optional)
echo cloneGallery($cloneGallery, '', 'md');
Preview

Clone Video


Variables

$cloneVideo = get_field("clone_video");
$parameters = [
	'image-size' => 'xl',
	'style' => 'default or lightbox',
	'group' => 'name-group'
];

Functions

1. Data – Default Parameters
echo cloneVideo($cloneVideo);
Preview
call of duty warzone hero
2. Parameters (Optional)
$parameters = [
    'image-size' => 'lg',
    'style' => 'lightbox',
    'group' => 'name-group'
];
echo cloneVideo($cloneVideo, $parameters);
Preview
call of duty warzone hero

Clone Social Links


Variables

$cloneSocialLinks = get_field("clone_social_links");

Functions

1. Data
echo cloneSocialLinks($cloneSocialLinks);
Preview

Skip to Main Content