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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
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 Custom Image Sizes to Media Uploader | |
* @author Pippin Williamson | |
* @link http://pippinsplugins.com/add-custom-image-sizes-to-media-uploader/ | |
* | |
* @param array $sizes | |
* @return array | |
*/ |
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 | |
/** | |
* Customize image size used in the loop by Genesis | |
* | |
* @author Jared Atchison | |
* @link http://jaredatchison.com/code/ | |
* @param string $image_size | |
* @global array $wp_query | |
* @global int $loop_counter | |
* @return string |
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 | |
/** | |
* Redirect taxonomy to use custom post type archive template | |
* | |
* @author Jared Atchison | |
* @link http://jaredatchison.com/code/ | |
* @param string $template | |
* @return string | |
*/ | |
function ja_template_redirect( $template ) { |
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 taxonomy slugs to post class | |
* | |
* @author Jared Atchison | |
* @link http://jaredatchison.com/code/ | |
* @param array $classes | |
* @global array $post | |
* @return array | |
*/ |
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 post title placeholder text for custom post type | |
* | |
* @author Jared Atchison | |
* @link http://jaredatchison.com/code/ | |
* @global array $post | |
* @param string $translation | |
* @return string Customized string for title | |
*/ |
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 | |
/** | |
* Detect gist shortcode in post content | |
* | |
* This assumes you are using a shortcode in the format [gist id="xxxxx']. | |
* I use this code in a custom metabox that is registered for my code snippets | |
* custom post type. This way after I save the snippet (or when editting an | |
* existing snippet) it will show the snippet below the post editor in a | |
* metabox. | |
* |
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 | |
/** | |
* Checks for sub pages | |
* | |
* This see if the current page is the page, or is a sub page | |
* of the page | |
* | |
* @since 1.0.0 | |
* @link http://codex.wordpress.org/Conditional_Tags#Testing_for_sub-Pages | |
* @param int $pid, 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 | |
/** | |
* Suppress debug warnings and notices to the debug bar. | |
* Place the follow lines in your wp-config. | |
* | |
* Install the Debug Bar - http://wordpress.org/extend/plugins/debug-bar/ | |
* | |
* Other recommended Debug Bar add-ons: | |
* http://wordpress.org/extend/plugins/debug-bar-cron/ | |
* http://wordpress.org/extend/plugins/tdd-debug-bar-post-meta/ |
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: bbPress Members Only | |
* Plugin URI: http://wordpress.org/extend/plugins/bbpress-members-only/ | |
* Description: This plugin is retricts bbPress to logged in/registered members. | |
* Version: 1.0 | |
* Author: Jared Atchison | |
* Author URI: http://jaredatchison.com | |
* | |
* This program is free software; you can redistribute it and/or modify |