Thank you Joshua, I don’t know what I’m missing? My functions.php file is below:
<?php
/*
Author: Ole Fredrik Lie
URL: http://olefredrik.com
*/
// Various clean up functions
require_once('library/cleanup.php');
// Required for Foundation to work properly
require_once('library/foundation.php');
// Register all navigation menus
require_once('library/navigation.php');
// Add menu walkers
require_once('library/menu-walker.php');
//require_once('library/offcanvas-walker.php');
require_once('library/accordion-menu-walker.php');
// Create widget areas in sidebar and footer
require_once('library/widget-areas.php');
// Return entry meta information for posts
require_once('library/entry-meta.php');
// Enqueue scripts
require_once('library/enqueue-scripts.php');
// Add theme support
require_once('library/theme-support.php');
// Add Header image
require_once('library/custom-header.php');
/** Add ACF Options Pages **/
if(function_exists('acf_add_options_page')){
acf_add_options_page(array(
'page_title' => 'Global Options',
'menu_title' => 'Global Options',
'position' => '4.1',
'icon_url' => 'dashicons-admin-generic'
));
acf_add_options_page(array(
'page_title' => 'Header Options',
'menu_title' => 'Header Options',
'position' => '4.2',
'icon_url' => 'dashicons-editor-table'
));
// acf_add_options_page(array(
// 'page_title' => 'Footer Options',
// 'menu_title' => 'Footer Options',
// 'position' => '4.3',
// 'icon_url' => 'dashicons-slides'
// ));
// acf_add_options_page(array(
// 'page_title' => 'Page Options',
// 'menu_title' => 'Page Options',
// 'position' => '4.4',
// 'icon_url' => 'dashicons-schedule'
// ));
acf_add_options_page(array(
'page_title' => 'Homepage Options',
'menu_title' => 'Homepage Options',
'position' => '4.5',
'icon_url' => 'dashicons-desktop'
));
}
add_filter( 'gform_merge_tag_filter', function ( $value, $merge_tag, $modifier, $field, $raw_value, $format ) {
if ( $field->type == 'checkbox' && $modifier == 'list' && ! empty( $raw_value ) ) {
$items = '';
foreach ( $raw_value as $key => $item ) {
if ( ! rgblank( $item ) ) {
$items .= '<li>' . wp_kses_post( GFCommon::selection_display( $item, $field, '', true ) ) . '</li>';
}
}
if ( empty( $items ) ) {
$value = '';
} else {
$value = "<ul class='bulleted'>$items</ul>";
}
}
return $value;
}, 10, 6 );
add_filter( 'gform_enable_field_label_visibility_settings', '__return_true' );
add_theme_support( 'title-tag' );
function new_excerpt_more( $more ) {
return ' ...';
}
add_filter('excerpt_more', 'new_excerpt_more');
// Shortcode function button link
function acg_button_shortcode( $atts ) {
$a = shortcode_atts( array(
'url' => '#',
'text' => 'Button',
'target' => '',
'color' => '',
'align' => 'text-left',
'width' => ''
), $atts );
return '<div class="' . $a['align'] . '"><a href="' . $a['url'] . '" target="' . $a['text'] . '" class="button '. $a['color'] .'" style="width:'. $a['width'] .';">' . $a['text'] . '</a></div>';
}
add_shortcode( 'acgbutton', 'acg_button_shortcode' );
//[acgbutton url="/give/" align="text-center" text="Give Now"]
// Loads Pricing Calculator
include_once 'functions-calculator.php';
//Loads Stats Counter
include_once 'functions-stats.php';
/* Add responsive container to embeds
/* ------------------------------------ */
function alx_embed_html( $html ) {
return '<div class="video-container">' . $html . '</div>';
}
add_filter( 'embed_oembed_html', 'alx_embed_html', 10, 3 );
add_filter( 'video_embed_html', 'alx_embed_html' );
// Pagination Fix...
function bamboo_request($query_string )
{
if( isset( $query_string['page'] ) ) {
if( ''!=$query_string['page'] ) {
if( isset( $query_string['name'] ) ) {
unset( $query_string['name'] );
}
}
}
return $query_string;
}
/*
add_filter('request', 'bamboo_request');
add_action('pre_get_posts','bamboo_pre_get_posts');
function bamboo_pre_get_posts( $query ) {
if( $query->is_main_query() && !$query->is_feed() && !is_admin() ) {
$query->set( 'paged', str_replace( '/', '', get_query_var( 'page' ) ) );
}
}
*/
// Function that will return our Wordpress menu
function rle_menu($atts, $content = null) {
extract(shortcode_atts(array(
'menu' => '',
'container' => 'div',
'container_class' => '',
'container_id' => '',
'menu_class' => 'menu',
'menu_id' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'depth' => 0,
'walker' => '',
'theme_location' => ''),
$atts));
return wp_nav_menu( array(
'menu' => $menu,
'container' => $container,
'container_class' => $container_class,
'container_id' => $container_id,
'menu_class' => $menu_class,
'menu_id' => $menu_id,
'echo' => false,
'fallback_cb' => $fallback_cb,
'before' => $before,
'after' => $after,
'link_before' => $link_before,
'link_after' => $link_after,
'depth' => $depth,
'walker' => $walker,
'theme_location' => $theme_location));
}
//Create the shortcode
add_shortcode("rlemenu", "rle_menu");
?>
My message code is below:
<strong>{First and middle names (as on government issued ID):206} {Last name (as on government issued ID):285} was referred to Brinton Vision by their eye doctor</strong>
Name: {First and middle names (as on government issued ID):206} {Last name (as on government issued ID):285}
Preferred Name: {Preferred name or nickname:210}
DOB: {Date of Birth (as on government issued ID):622} Age: {Age:280}
Referring eye doctor: {If your eye doctor referred you to Brinton Vision, please provide the doctor\'s name and practice information here.:445}
Years seeing eye doctor: {For how many years have you seen this doctor for clinic exams?:624}
Who in the office told you about us: {Who in the doctor’s office told you about Brinton Vision?:625}
Name of referring person: {Could you tell us their name so we can thank them?:626}
How I chose Brinton Vision:
{Heard about from:115:list}
My output is below:
Scooter McGavin was referred to Brinton Vision by their eye doctor
Name: Scooter McGavin
Preferred Name: Scooter
DOB: 01/01/1965 Age: 56
Referring eye doctor: Taylor Chesnut
Years seeing eye doctor: 1-2 years
Who in the office told you about us: Doctor
Name of referring person:
How I chose Brinton Vision:
My eye doctor recommended Brinton Vision, Internet search, Radio, Billboard
Thank you for your help with this.