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

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

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

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.