• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2671

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Tutorial Requests
  • Contact
  • Videos
  • Tags
  • Log in

Premium Member? - Request custom code

Displaying ACF Field Types In Genesis Template

This single template for Genesis includes code snippets which enable you to print different ACF field types including :

  • Google Maps
  • Checkbox values with icons
  • Images
  • Links
  • Wysiwyg Editor content
  • Text fields

This is what the template produces :

And here’s the edit screen :

The template also includes a custom sidebar using Genesis Simple Sidebars with the i.d accomodation-sidebar

Template Installation

There’s 3 simple steps :

Step 1 : From the download folder, copy & paste the PHP code from the functions file to the end of your functions file. Change all instances of accomodation in the code to match your CPT name.

Step 2 : From thew download folder, upload the file named single-accomodation.php and map.php to your child themes root directory. Rename the single-accomodation.php file to match the name of your custom post type. i.e single-cpt.php.

Step 3 : Line 16 of map.php, swap out the Google API key with your own.

The ACF fields export file is also included in the download folder which you can import using ACF Pro

Register or login to access the download folder for members :

Register for full access

Related Tutorials

  • ACF Show Checkbox Choice With Icon Only When Value Checked
  • Add ACF Google Map In Genesis

Custom Fields

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Brad Dalton Specializes In Genesis child theme customization & code modification. Read More…

Learn PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems