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

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Custom Fields In Genesis Page Template

This tutorial for members provides the code for 2 custom page templates with 4 to 6 custom fields.

  1. The 1st template is a bit like a front or home page template that replaces widgets areas with custom fields.
  2. The 2nd template displays full width content sections.

Here’s what the 1st page template looks like with sample text:

custom-field-template

The template uses the Advanced Custom Fields plugin (ACF) to create the meta boxes which appear under the editor on all Edit Page screens using this template.

Here’s some of the fields the plugin adds to all pages using the template:

acf-fields

If you prefer not to install a plugin like ACF, you can hand code a meta box for each field.

The custom fields output within the page loop using the .entry class however you can change the hook from genesis_loop to another genesis hook position.

Here’s what the 2nd template looks like:

template

Installation instructions

  1. After downloading the custom fields template zip folder below, unzip it and upload the page-custom-fields.php to your child themes root directory.
  2. Install the ACF plugin and import the advanced-custom-field-export.xml file using the plugins import settings.

Here’s the link to download both files.

Register for full access

Related Posts

  • Genesis Custom Fields Template With Full Width Content Areas

Custom Fields

Reader Interactions

Comments

  1. Alla says

    February 11, 2016 at 11:05 am

    “Install the ACF plugin and import the advanced-custom-field-export.xml file using the plugins import settings.”

    How do I do that? I’ve installed and activated ACF plugin , but I don’t see import seting anywhere?

    Log in to Reply

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.