In this tutorial, we are going to use the genesis_before_entry_content
action hook in Genesis to display the value of a page_intro
custom field's value (if present) between entry header and entry content on static Pages.
Step 1
Install and activate Advanced Custom Fields plugin.
Create a field group called say, Page Meta and add a page_intro
Wysiwyg field like so (XML export file below the screenshot):
XML export of the field group can be downloaded from here (mirror).
Step 2
Create/edit your Page(s) and enter your desired Intro content.
Step 3
Add the following in child theme's functions.php
:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.