This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use StoutLogic\AcfBuilder\FieldsBuilder; | |
/** | |
* 01. Options | |
* a. Admin Options | |
* b. Background Options |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('register_post_type_args', 'hierarchal_posts', 10, 2); | |
function hierarchal_posts($args, $post_type){ | |
if ($post_type == 'post'){ | |
$args['hierarchal'] = true; | |
} | |
return $args; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Product": [ | |
{ | |
"Description": "Cutting-edge envelope sealing technology for commercial, residential, and multi-family applications.", | |
"PDFResources": [ | |
"AeroBarrier Durability Testing", | |
"AeroBarrier Full Line Brochure", | |
"AeroBarrier Overview and FAQ Flyer", | |
"AeroBarrier X1 Sealant Datasheet and SDS" | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Glossary": [{ | |
"Term": "", // get_the_title(); | |
"Definition": "", // get_the_content(); | |
"Active": "", // get_field('is_active'); | |
"Legacy_ID": "", // get_field('legacy_id'); | |
"ID" : "" // get_the_ID(); | |
]} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// only no index all events archived | |
add_action('wp_head', 'no_index_event_archives', 10, 3); | |
function no_index_event_archives() { | |
if ( ! is_post_type_archive('tribe_events') ) | |
return; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function schema_builder( $context ) { | |
$html = '<script type= "application/ld+json">'; | |
$html .= '{'; | |
$html .= '"@context": "http://schema.org",'; | |
$html .= '"@type": "Organization",'; | |
$html .= '"@name": "' . get_blog_info('name') . ',"; | |
$html .= '"@url": "' . get_blog_info('url') . ',"; | |
if ( $has_brand_logo ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Bail if section is set to inactive | |
if ( get_sub_field('status') == 0 ) | |
return; | |
global $tpl_args; | |
$s_classes = array('faqs-template'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Conditional Itinerary Builder Template | |
$form_page = get_option('form_page'); | |
$suggestions_page = get_option('suggestions_page'); | |
$results_page = get_option('results_page); | |
if ( is_page( $form_page ) ) { | |
get_template_part('/templates/form-page'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'init', 'ssm_remove_post_type_support' ); | |
function ssm_remove_post_type_support() { | |
remove_post_type_support( 'page', 'editor' ); | |
} | |
add_action( 'after_setup_theme', 'crb_load' ); |
NewerOlder