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 | |
/* Add the Style Dropdown Menu to the second row of visual editor buttons | |
* N.B. Make sure you include your custom classes in both your style.css AND editor-style.css :) | |
*/ | |
function pico_themes_mce_buttons( $buttons ) { | |
array_unshift( $buttons, 'styleselect' ); | |
return $buttons; | |
} |
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
/* Alternative Header Graphics | |
------------------------------------------------------------ */ | |
.single #header, | |
.header-wrench #header { | |
background: #fff url(images/header-bg-single.jpg) repeat-x; | |
} | |
.single #header .wrap, | |
.header-wrench #header .wrap { |
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 | |
function themename_customize_register($wp_customize){ | |
$wp_customize->add_section('themename_color_scheme', array( | |
'title' => __('Color Scheme', 'themename'), | |
'priority' => 120, | |
)); | |
// ============================= |
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 | |
/** | |
* Plugin Name: Set featured image | |
* Plugin URI: http://wpengineer.com/2460/set-wordpress-featured-image-automatically/ | |
* Description: Set featureed image automaticly on save post/page | |
* Version: 1.0.1 | |
* Author: Frank Bültge | |
* Author URI: http://bueltge.de | |
* License: GPLv3 | |
*/ |
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 | |
/* | |
Plugin Name: Featured Page Widget | |
Plugin URI: http://plugins.grandslambert.com/plugins/featured-page-widget.html | |
Description: Feature pages on your sidebar including an excerpt and either a text or image link to the page. | |
Version: 2.2 | |
Author: grandslambert | |
Author URI: http://grandslambert.com/ |
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 | |
/* | |
* Plugin Name: Root-based Taxonomy URLs for WordPress | |
* Description: Enables root-based Taxonomy URLs, i.e. Makes /taxonomy/my-taxonomy/ URLs route as /my-taxonomy/ | |
* Author: Mike Schinkel | |
* Author URI: http://about.me/mikeschinkel | |
* Plugin URI: https://gist.github.com/1421235 | |
* Version: 0.1 | |
* License: GPL 2+ | |
* Notes: Must use register_root_based_taxonomy_url( $taxonomy[, $priority] ) in an 'init' hook to specify root_based taxonomy. |
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 | |
/** | |
* Archive Post Class | |
* @since 1.0.0 | |
* | |
* Breaks the posts into three columns | |
* @link http://www.billerickson.net/code/grid-loop-using-post-class | |
* | |
* @param array $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 | |
/* | |
* Code Examples for Master WordPress Custom Post Types - WordCamp Atlanta 2012 | |
* | |
* Author: Mike Schinkel | |
* Author URI: http://about.me/mikeschinkel | |
* | |
*/ | |
add_action( 'init', 'mikes_theme_init' ); | |
function mikes_theme_init() { |
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 | |
/** Remove the Genesis Featured Post widget */ | |
add_action( 'widgets_init', 'faculty_unregister_widgets' ); | |
function faculty_unregister_widgets() { | |
unregister_widget( 'Genesis_Featured_Post' ); | |
unregister_widget( 'Genesis_Featured_Page' ); | |
} | |
add_action('widgets_init', create_function('', "register_widget('Faculty_Featured_Post');")); | |
add_action('widgets_init', create_function('', "register_widget('Faculty_Featured_Page');")); |