This file contains 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 //each page builder has its own section | |
get_template_part('inc', 'page-builder'); | |
?> |
This file contains 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
//Used in Template | |
<?php if(get_field('banner_image')): ?> | |
<div class="banner-image"><img class="img-responsive" src="<?php the_field('banner_image'); ?>"></div> | |
<?php endif; ?> | |
//Used in custom post types | |
<?php |
This file contains 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 | |
$today = current_time('Ymd'); | |
$args = array( | |
'post_type' => 'events', | |
'posts_per_page' => '20', | |
'meta_key' => 'speaking_date', | |
'order' => 'ASC', | |
'orderby' => 'meta_value', | |
'meta_query' => array( | |
array( |
This file contains 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_action('init', 'tessak22_register_custom_post_types', 0); | |
function tessak22_register_custom_post_types() | |
{ | |
$arr_custom_post_type_options = array( | |
/* | |
array( | |
'label' => 'lowercase_name' // ** 20 char max, no spaces or caps | |
'singlar' => 'Human-Readable Item' // singular name | |
'plural' => 'Human-Readable Items' // plural name | |
'supports' => array('title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'page-attributes', 'post-formats') |
NewerOlder