Skip to content

Instantly share code, notes, and snippets.

View billrobbins's full-sized avatar

Bill Robbins billrobbins

View GitHub Profile
[button url="http://yourlink.com" label="Button Text"]
[fit]Your video code[/fit]
[lead]Your lead text[/lead]
[staff group="core"]
<?php
/*
* Template Name: Staff List
*
*
* This file displays the complete
* list of staff members
*
* @package WordPress
* @subpackage United
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,
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 );
<?php
/*
Template Name: Special Staff Home
*
*
* This file controls the display of the
* themes home page
*
* @package WordPress
* @subpackage Elite
<?php $loop = new WP_Query( array( 'posts_per_page' => 10 ) ); ?>