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
remove_action( 'genesis_before_post_content', 'genesis_post_info' ); | |
add_action( 'genesis_before_post_content', 'child_post_info' ); | |
/** | |
* Custom Post-Info with Google Rich Snippet support | |
* | |
* @author Greg Rickaby | |
* @since 1.0.0 | |
*/ | |
function child_post_info() { | |
if ( is_page() ) |
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_action( 'init','fsm_thickbox' ); | |
/** | |
* fsm_thickbox function. | |
* | |
* @access public | |
* @param mixed $text | |
* @return void |
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_filter( 'genesis_post_info', 'custom_post_info_filter' ); | |
/** | |
* Modify author link in Post Info to website. | |
* | |
* @access public | |
* @author Remkus de Vries | |
* @link http://remkusdevries.com/change-author-link/ | |
* @param mixed $post_info |
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_filter( 'body_class', 'fst_category_id_class' ); | |
/** | |
* This function add the category name to the bodyclass. | |
* | |
* @access public | |
* @author Remkus de Vries | |
* @param mixed $classes | |
* @return void |
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
#! /bin/bash | |
# A modification of Dean Clatworthy's deploy script as found here: https://github.com/deanc/wordpress-plugin-git-svn | |
# The difference is that this script lives in the plugin's git repo & doesn't require an existing SVN repo. | |
# main config | |
PLUGINSLUG="______your-plugin-name______" | |
CURRENTDIR=`pwd` | |
MAINFILE="______your-plugin-name______.php" # this should be the name of your main php file in the wordpress plugin | |
# git config |
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_filter( 'body_class', 'tax_body_class' ); | |
/** | |
* This function adds category nicenames to body class. | |
* | |
* @access public | |
* @author Remkus de Vries | |
* @param mixed $classes | |
* @return void |
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
add_action( 'init', 'no_wp_admin_for_lesser_gods' ); | |
/** | |
* This will redirect anyone without an administrator | |
* lever user to the front of the site. No Dashboard for them. | |
* | |
* @author Remkus de Vries | |
* @access public | |
* | |
*/ | |
function no_wp_admin_for_lesser_gods() { |
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 ( file_exists( dirname( __FILE__ ) . '/local-config.php' ) ) { | |
include( dirname( __FILE__ ) . '/local-config.php' ); | |
define( 'WP_LOCAL_DEV', true ); | |
} else { | |
define( 'DB_NAME', $_SERVER["DB_NAME"] ); | |
define( 'DB_USER', $_SERVER["DB_USER"] ); | |
define( 'DB_PASSWORD', $_SERVER["DB_PASSWORD"] ); | |
define( 'DB_HOST', 'localhost' ); |