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 | |
/** | |
* Hide Editor | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/code/hide-editor-on-specific-page-template/ | |
*/ | |
function be_hide_editor() { | |
// Get the Post 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 | |
/** | |
* Register Sidebars | |
* @link http://www.billerickson.net/wordpress-additional-sidebars/ | |
* @author Bill Erickson | |
* | |
*/ | |
function be_register_sidebars() { | |
register_sidebar( |
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 | |
/** | |
* Custom Body Classes - for Thesis | |
* @link http://www.billerickson.net/wordpress-class-body-tag/ | |
* @author Bill Erickson | |
* | |
* @param array $classes existing body classes | |
* @return array modified body classes | |
*/ |
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 | |
/** | |
* Custom Body Classes | |
* @link http://www.billerickson.net/wordpress-class-body-tag/ | |
* @author Bill Erickson | |
* | |
* @param array $classes existing body classes | |
* @return array modified body classes | |
*/ |
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 | |
/** | |
* Don't show Events category on homepage | |
* Category 5 = Events category, so we use cat=-5 | |
* | |
* @link http://www.billerickson.net/thesis-wordpress-remove-category-homepage/ | |
* @author Bill Erickson | |
* @param object $query | |
*/ |
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 | |
/** | |
* Avatar on Features and Single Posts | |
* | |
* @link http://www.billerickson.net/using-gravatars-in-wordpress/ | |
* @author Bill Erickson | |
* | |
*/ | |
function custom_author_post_avatar(){ |
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 | |
/** | |
* Avatar on Teasers | |
* | |
* @link http://www.billerickson.net/using-gravatars-in-wordpress/ | |
* @author Bill Erickson | |
* | |
*/ | |
function custom_author_post_avatar_teaser(){ |
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 Default Avatar | |
* | |
* @link http://www.billerickson.net/using-gravatars-in-wordpress/ | |
* @author Bill Erickson | |
* @param array $avatars current default avatars | |
* @return array new default avatars | |
* |
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 | |
/** | |
* List Posts tagged 'thesis-tip' | |
* | |
*/ | |
function be_display_thesis_tip() { | |
$args = array( | |
'tag' => 'thesis-tip', | |
'posts_per_page' => '-1', |
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 | |
/** | |
* Display Post Image and Caption | |
* | |
* @link http://www.billerickson.net/wordpress-featured-image-captions/ | |
* @author Bill Erickson | |
* | |
*/ | |
function be_display_image_and_caption() { |