Skip to content

Instantly share code, notes, and snippets.

Avatar

Bill Robbins billrobbins

View GitHub Profile
View lead.html
[lead]Your lead text[/lead]
View fit-video.html
[fit]Your video code[/fit]
View button.html
[button url="http://yourlink.com" label="Button Text"]
View upside-down-staff.php
<?php
/*
* Template Name: Staff List
*
*
* This file displays the complete
* list of staff members
*
* @package WordPress
* @subpackage United
View custom-js.php
jQuery('.flexslider').flexslider({
animation : "<?php echo of_get_option('type','') ?>",
slideshow : <?php echo of_get_option('auto','') ?>,
slideshowSpeed : <?php echo of_get_option('duration','') ?>,
animationDuration : <?php echo of_get_option('transition','') ?>,
directionNav : <?php echo of_get_option('prev_next','') ?>,
controlNav : false,
pauseOnAction : true,
smoothHeight : true,
View pre-posts.php
function foundation_pre_posts( $query ) {
if ( is_tax( 'staff-group' ) && $query->is_main_query() ) {
// displays in post order
$query->set( 'order', 'ASC' );
$query->set( 'orderby', 'menu_order' );
return;
}
}
add_action( 'pre_get_posts', 'foundation_pre_posts', 1 );
View special-staff-page.php
<?php
/*
Template Name: Special Staff Home
*
*
* This file controls the display of the
* themes home page
*
* @package WordPress
* @subpackage Elite
View widget-featured-posts.php
View post-query.php
<?php $loop = new WP_Query( array( 'posts_per_page' => 10 ) ); ?>