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 $loop = new WP_Query(array('post_type' => 'video-faq', 'posts_per_page' => 30, 'order' => 'ASC', 'orderby' => 'menu_order')); ?> | |
<?php $i = 1; //get the number count ?> | |
<?php while ($loop->have_posts()) : $loop->the_post(); ?> | |
<?php $videoName = get_field('video_file_name'); ?> | |
<!--Button to trigger popup--> | |
<p><?php echo $i;?>. <a href="#question<?php echo $i;?>" role="button" data-toggle="modal"><?php the_title(); ?></a></p> | |
<div id="question<?php echo $i;?>" class="modal hide fade video-pop" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
<div class="modal-body"> | |
<?php echo do_shortcode('[video mp4="http://bitcast-a.bitgravity.com/netcom/ingage/html5/' . $videoName . '.mp4" ogg="http://bitcast-a.bitgravity.com/netcom/ingage/html5/' . $videoName . '.ogv" webm="http://bitcast-a.bitgravity.com/netcom/ingage/html5/' . $videoName . '.webm" poster="/assets/img/poster-484x362.png" preload="true" fullscreen="false" volume="false" width="484" height="362" ]'); ?> |
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
/* ========================================================================== | |
WordPress Generated Classes | |
See: http://codex.wordpress.org/CSS#WordPress_Generated_Classes | |
========================================================================== */ | |
.aligncenter { display: block; margin: 0 auto; } | |
.alignleft { float: left; margin: 0px 20px 20px 0; } | |
.alignright { float: right; margin: 0px 0 20px 20px; } | |
figure.alignnone { margin-left: 0; margin-right: 0; } |
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
// Creates custom menus | |
add_action( 'init', 'register_my_menus' ); | |
function register_my_menus() { | |
register_nav_menus( | |
array( | |
'header-nav-1' => __( 'Top Nav' ), | |
'header-nav-2' => __( 'Header main' ), | |
'footer-nav' => __( 'Footer Nav' ), | |
'policy-nav'=> __('policy Nav') | |
) |
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 | |
$menu_location = 'Footer-Nav-Column-1'; | |
$menu_locations = get_nav_menu_locations(); | |
$menu_object = (isset($menu_locations[$menu_location]) ? wp_get_nav_menu_object($menu_locations[$menu_location]) : null); | |
$menu_name = (isset($menu_object->name) ? $menu_object->name : ''); | |
echo ('<h4>'); | |
echo esc_html($menu_name); | |
echo ('</h4>'); | |
wp_nav_menu(array('theme_location' => $menu_location, 'menu_class' => 'nav')); | |
?> |
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
//Bread crumbs created | |
function wordpress_breadcrumbs() { | |
$delimiter = '|'; | |
$currentBefore = '<span class="current">'; | |
$currentAfter = '</span>'; | |
if ( !is_home() && !is_front_page() || is_paged() ) { | |
echo '<div id="crumbs">'; | |
global $post; | |
if ( is_page() && !$post->post_parent ) { | |
echo $currentBefore; |
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
<ul> | |
<?php | |
//Queryies for pages that are children of the current page | |
$this_page_id = $wp_query->post->ID; ?> | |
<?php query_posts(array('showposts' => 5, 'post_parent' => $this_page_id, 'post_type' => 'page')); | |
while (have_posts()) { | |
the_post(); ?> | |
<li><a href="<?php the_permalink() ?>"><?php the_title() ?></a></li> | |
<?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 | |
//Set up the variables of the parent page ID's | |
$parentPageID = '509'; | |
?> | |
<?php if (is_page($parentPageID) || $post->post_parent == $parentPageID || ($post->ancestors && in_array($parentPageID, $post->ancestors) )) { ?> | |
<h3>Child Pages</h3> | |
<ul> | |
<?php | |
//Queries for all pages that are children of our parent ID | |
?> |
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 | |
$argsArray = array( | |
array("pageID" => '496', "catID" => '41'), | |
array("pageID" => '519', "catID" => '35'), | |
array("pageID" => '522', "catID" => '40'), | |
array("pageID" => '1687', "catID" => '38'), | |
array("pageID" => '524', "catID" => '36'), | |
); |
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
array( | |
'is_404', | |
'is_front_page', | |
array('is_page', array('instructors', '',)), //page-instructors.php | |
array('is_page', array('contact', '',)), | |
array('is_singular', array('instructor', '',)), // single-instructor.php | |
array('is_singular', array('class', '',)) | |
), |
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 while (the_repeater_field('repeater_name_here')): ?> | |
<?php the_sub_field('repeater_sub_here'); ?> | |
<?php endwhile; ?> |