This file contains hidden or 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_filter( 'sidebars_widgets', 'gmj_shuffle_widgets' ); | |
/** | |
* Shuffle ranges of widgets within a sidebar. | |
* | |
* Hat-tip to {@link http://gmj.to/op} for the original idea. | |
* | |
* @uses gmj_do_shuffle_widgets() Does the actual array manipulation. | |
* |
This file contains hidden or 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_action( 'dynamic_sidebar', 'gmj_add_content_to_top_of_sidebars_on_widgets_screen' ); | |
/** | |
* Add content to the top of each sidebar on the Widgets admin screen. | |
* | |
* @author Gary Jones | |
* | |
* @global array $wp_registered_widgets All registered widgets | |
* @param array $current_widget The current widget about to have its form shown |
This file contains hidden or 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_filter( 'genesis_archive_display_options', 'child_add_content_archive_display_option' ); | |
/** | |
* Adds new option to display type in Genesis Theme Settings Content Archives | |
* box. | |
* | |
* @param array $options Existing display types. | |
* @return array Amended display types. | |
*/ |
This file contains hidden or 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_action( 'pre_get_posts', 'be_increase_posts_on_quotes_archive' ); | |
/** | |
* Increase posts on quotes archive. | |
* | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/customize-the-wordpress-query/ | |
* |
This file contains hidden or 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_action( 'init', 'be_initialize_meta_boxes' ); | |
/** | |
* Initialize the metabox code library. | |
* | |
* Since this code might be in the theme and multiple plugins, | |
* see if it exists already before initializing it. | |
* | |
*/ |
This file contains hidden or 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_action( 'pre_get_posts', 'be_sort_articles_category' ); | |
/** | |
* Sort 'articles' category by name | |
* | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/customize-the-wordpress-query/ | |
* @param object $query data | |
* |
This file contains hidden or 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 | |
/** | |
* WP Simple Maintenance Mode plugin | |
* | |
* Shows site in maintenance mode unless on the login page or one of a | |
* selected group of users. | |
* | |
* Revamp of http://pastebin.com/tK6YnfyS | |
* | |
* @package WP_Simple_Maintenance_Mode |
This file contains hidden or 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 include the <?php above | |
add_action( 'after_setup_theme', 'prefix_register_split_sidebars', 5 ); | |
/** | |
* Register the two widget areas that make up our visually separated sidebar. | |
* | |
* @author Gary Jones | |
* @link http://gamajo.com/split-sidebar-genesis |
This file contains hidden or 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_value memory_limit "128M" | |
#BEGIN Image Upload HTTP Error Fix | |
<IfModule mod_security.c> | |
<Files async-upload.php> | |
SecFilterEngine Off | |
SecFilterScanPOST Off | |
</Files> | |
</IfModule> | |
<IfModule security_module> |
This file contains hidden or 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
Tags: black, blue, brown, gray, green, orange, pink, purple, red, silver, tan, white, yellow, dark, light, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-width, flexible-width, blavatar, buddypress, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, front-page-post-form, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, holiday, photoblogging, seasonal |