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 | |
if ( function_exists( 'function_name' ) ) { | |
//... do something ... | |
} | |
if ( class_exists( 'Class_Name' ) ) { |
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
# # BEGIN WordPres<I<IfModule mod_rewrite.cReRewriteEngine OReRewriteBase ReRewriteRule ^index\.php$ - [LReRewriteCond %{REQUEST_FILENAME} !-ReRewriteCond %{REQUEST_FILENAME} !-RewriteRule . /index.php [L] | |
</IfModule> | |
# END WordPress | |
s | |
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
@media only screen and (max-width: 1139px) { | |
.site-header .widget-area { | |
width: 600px; | |
} | |
.genesis-nav-menu a { | |
padding: 40px 7px 20px; | |
} | |
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
rsync -arv --exclude="*.git" --exclude=".svn" source/ /destination/ |
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 | |
/* | |
Template Name: Custom Loop | |
*/ | |
remove_action( 'genesis_loop','genesis_do_loop' ); | |
add_action( 'genesis_loop','my_custom_loop' ); | |
function my_custom_loop() { |
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_action('genesis_loop', 'genesis_do_loop'); | |
add_action('genesis_loop', 'custom_loop'); | |
function custom_loop() { | |
echo '<h1 class="entry-title" itemprop="headline">'.get_the_title().'</h1>'; | |
echo '<div class="clear"></div>'; | |
echo '<div class="singlebio">'; |
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 Posts older than 3 years from current date to draft status | |
* @link https://gist.github.com/ | |
* @param string | |
* @return string | |
*/ | |
add_action( 'init', 's25_mass_expire' ); | |
function s25_mass_expire(){ | |
global $wpdb; |
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 | |
/** | |
* Change default settings for the Genesis Primary Sidebar | |
* @link https://gist.github.com/ | |
* @param string | |
* @return string | |
*/ | |
//Gets rid of the default Primary Sidebar | |
unregister_sidebar( '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 | |
//Extra Author Profile Meta | |
add_action( 'show_user_profile', 'my_show_extra_profile_fields' ); | |
add_action( 'edit_user_profile', 'my_show_extra_profile_fields' ); | |
function my_show_extra_profile_fields( $user ) { ?> | |
<h3>Is this an active author?</h3> | |
<table class="form-table"> | |
<tr> | |
<td> |
OlderNewer