Advanced Custom Fields


Display Advanced Custom FieldsGallery into Justified Image Grid

Here is how to get the Advanced Custom Fields Gallery type to display in the Justified Image Grid plugin.

Got the original code for this from https://snippets.khromov.se/integrating-advanced-custom-field-galleries-into-existing-themes-easily/ and modified it slightly to work with Justified Image Grid.


Advanced Custom Fields File Field with Repeater and Showing Title

Here is some code that will use the Advanced Custom Fields file field and output the filename with a link to the file as well.


Advanced Custom Fields Get Select Label

Here is how to get the select label in an advanced custom fields output.

Change “Type” to the field name and you are good to go.


Advanced Custom Fields if Statement

This will show the content enclosed in the if statement only if the custom field exists.


Display Gallery for Advanced Custom Fields

This snippet is for the Advanced Custom Fields Gallery Plugin.

Change ‘gallery-thumb’ to the name of the thumbnail image you want to use. For full size images us ‘url’ or ‘large’